It shuffles the parameters list:
Note that I go thru 6 iterations to get "sufficient" disorder.sub shuffle { map { @_=sort { int (3*rand)-1 } @_ } 0..5 }
see Why I like functional programming by tilly.
-- stefp
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: sort to shuffle
by demerphq (Chancellor) on Sep 03, 2001 at 15:06 UTC | |
by stefp (Vicar) on Sep 03, 2001 at 18:30 UTC |
Back to
Obfuscated Code