Does shuffle() produce uniform result ?

Antoon Pardon apardon at
Mon Sep 3 12:31:12 CEST 2007

On 2007-08-26, tooru honda <tooru_honda at> wrote:
> By incorporating Alex's code, I got another performance boost of 20%.  
> It is mostly due to Alex's more efficient implementation of block random 
> than my own version.

If I understand correctly that you are using urandom as a random
generator I wouldn't trust too much on this performance. Urandom
uses the systemwide entropy-pool. If other programs need this pool
too, your performance can drop spectaculary. If you are using a linux
machine just try to execute "od -x /dev/random" at the same time
as your program.

Antoon Pardon

More information about the Python-list mailing list