Simple algorithm question - how to reorder a sequence economically
Robert Kern
robert.kern at gmail.com
Wed Jun 12 09:14:43 EDT 2013
On 2013-05-24 14:43, Chris Angelico wrote:
> On Fri, May 24, 2013 at 11:23 PM, Peter Brooks
> <peter.h.m.brooks at gmail.com> wrote:
>> Actually, thinking about
>> it, there is probably a source of non-algorithmically-derived 'random'
>> numbers somewhere on the net that would do the job nicely.
>
> True entropy is usually provided by a source such as /dev/random (on
> Unix systems). It's sometimes referred to as "cryptographic"
> randomness, due to its necessity in secure encryption work. There are
> various ways to get this in a cross-platform way.
os.random() and os.urandom(), particularly.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list