View Single Post
Old 08-19-2016, 03:05 PM   #152
nilodor
College Benchwarmer
 
Join Date: Oct 2000
Location: calgary, AB
Silly noob question:

I'm trying to generate random numbers so I've done
Code:
from _random import Random A = [] for i in range(0,8): A.append(4+Random().random())

But when I print A, I get the same random number the entire time. I'm kind of confused as to why as I thought if I don't specify a seed I should get a different random number based upon the system clock. Or is it just happening too fast, so the clock is the same?
nilodor is offline   Reply With Quote