Creating a more random int?

davbrow at gmail.com davbrow at gmail.com
Wed Jan 25 13:01:16 EST 2006


Steven,

Have you considered you might want a less random distribution?  If you
just want to remove repeats so it 'seems' more random you could do that
(replace any repeat with another random value not equal to the last
value).  It likely will not be as uniformly random as the original
sequence but it will be 'smoother' in some definition that you might
prefer for your uses.  Be very careful though if you are going to use
it for technical work that requires a uniform  distribution in the
formal sense.

-- Dave




More information about the Python-list mailing list