Re: [Haskell-cafe] Linear shuffle

14 Jan
2005
14 Jan
'05
4:22 p.m.
Gracjan Polak
wrote: John Meacham wrote: Oleg wrote a great article on implementing the perfect shuffle. with some sample code.
Thats the kind of answer I was hoping to get :) Thanks.
shuffle could be useful in standard library. At least Python has it. I was translating some small Python program, the hardest part was the missing shuffle function. What do you think?
Also, note that, in a lazy language, the algorithm's complexity will be dependent on the number of cards drawn from the deck, are possibly sub-linear in the number of cards in the deck. John
7432
Age (days ago)
7432
Last active (days ago)
0 comments
1 participants
participants (1)
-
Atwood, John Wesley