Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: sort to shuffleby demerphq (Chancellor) |
on Sep 03, 2001 at 15:06 UTC ( [id://109842]=note: print w/replies, xml ) | Need Help?? |
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
|
|