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.