in reply to How can I print all the numbers from 1 to n in random order?

Hmm, see splice for why that doesn't work. Here's the fix: print (splice @a, rand @a, 1);