Rand is only bad if you actually need good randomness, and if you don't want global mutable state. If you don't care about these things, rand is fine. So for demonstration, one-off programs, for newbies, use rand. It isn't "deprecated", and it isn't going away anytime soon.
It's just that there are more powerful libs now with more configuration options. If you think that extra power makes it too hard to use, and you don't really care what quality of randomness you get, then just use rand.
1
u/ShakaUVM i+++ ++i+i[arr] May 29 '18
Rand is bad for the reasons listed voluminously in this thread. But it is simple to read write and understand so it is better for new programmers.