Creating a more random int?
Tue Jan 24 18:36:49 CET 2006
"Steven Macintyre" <steven at steven.macintyre.name> writes:
> I need to retrieve an integer from within a range ... this works ... below
> is my out puts ... it just does not seem so random ...
It's pretty normal for random small ints to not look random. Are
there some statistical tests that the prng is definitely failing?
> Is there perhaps a suggestion out there to create a more random int ...?
Try reading bytes from os.urandom and converting them to ints in your
More information about the Python-list