[Tutor] Generating small random integer
w chun
wescpy at gmail.com
Tue Feb 21 12:50:09 CET 2006
> You need to tell python that randint is in the random module.
> ie, instead of calling randint(), call random.randint().
now this reminds me of something... and i think i need the help of the
tutors here! :-)
a long time ago, i recall that randint() was deprecated in favor of
randrange(). then in 2.2.2, it was "rehabilitated." does anyone
recall exactly what happened and why?
thanks,
-wesley
More information about the Tutor
mailing list