Please always reply to the list, not just to me.

On 1/14/2011 10:42 PM, walter weston wrote:
I want a whole number thats 5 digits long, I want to use it as a password and if I just type random.random() I get a long float.

random.randint(a, b)
Return a random integer N such that a <= N <= b.


--
Bob Gailer
919-636-4239
Chapel Hill NC

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to