by saagarjha · 7y ago · 0 comments
If you need something simpler than the community's choice and don't want a dependency, roll your own. Otherwise, the ecosystem has you covered.
I will admit that I don't understand why Random is its own crate, and not in the standard library, however...
This way of doing things has it's advantages though. People are still coming up with new ways of generating random numbers, and in an external library you can release a major version and remove deprecated functionality without breaking anybody's code.