[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Shufflebug



I just want to point out that studies show even humans with physical decks have to shuffle 7 times to produce a fair deck. 

But if I understand correctly, it doesn't help to shuffle more than once in a machine, since the sources of redundancy are different. In physical cards it's the proximity of positions that have to be overcome by multiple shufflings.

Cheers!
ira

On 7/18/00 at 12:07 PM, Amir Karger <karger@fermi2.chem.yale.edu> was so disposed to imagine:

> Hi.
> 
> Last year, I mentioned my "Random Schwartz" card shuffle on fwp:
> 
>   @{$deck->{"cards"}} =
>       map { $_->[0] } 
>       sort { $a->[1] <=> $b->[1] } 
>       map { [$_, rand] } 
>       @{$deck->{"cards"}};
> 
...



==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe