Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Actually 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>



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: