|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: sort to shuffleby demerphq (Chancellor) |
| on Sep 03, 2001 at 11:06 UTC ( [id://109842]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Cool idea. stefp++. Curious if sort could get into a 'never finish' scenario if the right values came up from rand though? Thought you might like this version of the fisher yates shuffle. UPDATE Having had a look at japhy home node I borrowed an idea from him and reduced it more. (Oh and I decided that shuffling mutiple times was unecessary.)
Yves
In Section
Obfuscated Code
|
|
||||||||||||||||||||||||||||