![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re^2: Randomly select values from arrayby BrowserUk (Patriarch) |
on May 16, 2010 at 17:36 UTC ( [id://840242]=note: print w/replies, xml ) | Need Help?? |
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:
Contrast that with
And the latter is more efficient to boot. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|