gen_range is optimised for the case that only a single sample is made from the given range, it's better to use the Uniform distribution if you need to generate repeatedly
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!