On 18/01/2013 at 00:04, xxxxxxxx wrote:
Hi,
can someone tell me if the python random class is OS and CPU independent ? i tried to find
an answer in python docs and with google, but i am still not really sure. it would be nice if
you could quickly run this short script.
import random
def main() :
random.seed(0)
for n in xrange(4) :
print round(random.random(),2)
if __name__=='__main__':
main()
it returns for me on 3 windows machines :
0.84
0.76
0.42
0.26
thanks for reading,