Ignoring that it doesn't work, I don't see how
print $_, "\n" foreach (sort {int(rand(3))-1} @array);
is easier than
print $_, "\n" foreach shuffle @array;
In reply to Re^3: Random array sorting
by ikegami
in thread Random array sorting
by kidd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |