What is an efficient way to randomize the order of something, for example characters in a string or places in an array, without repeating anything before you ran trough all characters/arrayplaces?
Name:
Anonymous2008-05-24 15:01
>>15
> swap a i j = a // [(j, a!i), (i, a!j)]
What's that comment? And how does this work anyway?