3 ms·
> I can't speak for Python, but in Java it's quite simple to do it right http://docs.python.org/library/random.html#random.randint http://docs.python.org/libra
by llimllib 16y ago
> I can't speak for Python, but in Java it's quite simple to do it right
http://docs.python.org/library/random.html#random.randint http://docs.python.org/library/random.html#random.randint
- streety 16y agoActually the python equivalent of "Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive)" would be random.randrange(0, n, 1) random.randint(a, b) returns a uniformly distributed int value between a (inclusive) and b (inclusive). </nitpick>