Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Bug in List::Util::shuffle ?

by PetaMem (Priest)
on Mar 23, 2009 at 08:58 UTC ( #752536=note: print w/replies, xml ) Need Help??


in reply to Bug in List::Util::shuffle ?

Well - maybe not a bug, but does anyone know the answer to the question in this thread 5 years ago?

I asked myself the same question today. Unfortunately, the List::Util POD doesn't answer it, neither does the source or (lack of) remarks.

It certainly doesn't look like the Fisher-Yates described in the Perl Cookbook on p. 121

Bye
 PetaMem
    All Perl:   MT, NLP, NLU

Replies are listed 'Best First'.
Re^2: Bug in List::Util::shuffle ?
by Corion (Pope) on Mar 23, 2009 at 09:09 UTC

    The implementation seems to be identical to the modern version of the Fisher-Yates shuffle, as found again by Richard Durstenfeld and published by Donald Knuth.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://752536]
help
Chatterbox?
and the fog begins to lift...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2016-12-05 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (94 votes). Check out past polls.