Which looks like it may work. But randomness always got me confused (and into furious rows with my math teacher, but that's another story).swap(\$a[$i], \$a[$random]);
In reply to Re^2: Random Derangement Of An Array
by Joost
in thread Random Derangement Of An Array
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |