Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

random order

Name: Anonymous 2008-05-24 2:19

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: Anonymous 2008-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?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List