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
In reply to functional programming: sort to shuffle by stefp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |