Page 1 of 1

per mutation of a string in BASIC

Posted: April 22nd, 2015, 6:12 am
by gio74
let's say i have a row of 12 numbers: 0 1 2 3 4 5 6 7 8 9 10 11
is there a way in basic to permutate randomly the row?

Re: per mutation of a string in BASIC

Posted: April 22nd, 2015, 9:55 am
by AltairClone
Look up "Knuth Shuffle"

Mike