Is there such a beast as a "perfect" shuffle? :)

Grant Edwards grante at visi.com
Fri May 10 18:18:08 EDT 2002


In article <brVC8.89221$M7.8251274 at bin7.nnrp.aus1.giganews.com>, Terry Reedy wrote:

> "Christos Georgiou" <DLNXPEGFQVEB at spammotel.com> wrote in message
> 
> What you are asking for is not a 'perfect shuffle' but a 'perfectly
> random shuffle'

Right. 'perfect shuffle' means:

 input   (a,b,c,d,e,A,B,C,D,E)
 
 output  (a,A,b,B,c,C,d,D,e,E)

-- 
Grant Edwards                   grante             Yow!  Hello? Enema
                                  at               Bondage? I'm calling
                               visi.com            because I want to be happy,
                                                   I guess...



More information about the Python-list mailing list