Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Randomly select values from array

by Xilman (Friar)
on May 17, 2010 at 08:04 UTC ( #840291=note: print w/replies, xml ) Need Help??


in reply to Re^2: Randomly select values from array
in thread Randomly select values from array

"To emphasis how bad that sort-based "shuffle" is, consider that over a million shuffles of four values, 1/3rd of the possibilities are never chosen. And the rest are chosen so disproportionately that 'fairness' doesn't enter the equation:"

I must try to remember that some people have difficulty recognizing meiosis (not that I'm including BrowserUk in that list). My original post included the words: "some of them more efficient by various metrics".

Oh well.

Paul

  • Comment on Re^3: Randomly select values from array

Replies are listed 'Best First'.
Re^4: Randomly select values from array
by BrowserUk (Pope) on May 17, 2010 at 08:52 UTC

    Oh. Please do include me in that. I had absolutely no idea what meiosis meant before you mentioned it. I'm still sure how it applies here.

    "some of them more efficient

    In the first instance, it wasn't about efficiency. Just the fact that it didn't work.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://840291]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2020-05-27 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (154 votes). Check out past polls.

    Notices?