[Tutor] how to print random number multiply

David Hutto smokefloat at gmail.com
Sat Jan 15 02:01:03 CET 2011


Sorry , the tab button doesn't work for text in google mail, and it
jumped to send

>>

  import random
> for x in range(1,10):
        print (random.random())

This assigns a new random each time, where as outside the for loop it
assigns it once.


More information about the Tutor mailing list