per mutation of a string in BASIC

General discussions related to the Altair 8800 Clone
Post Reply
gio74
Posts: 54
Joined: January 30th, 2015, 1:43 pm
Contact:

per mutation of a string in BASIC

Post 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?
AltairClone
Site Admin
Posts: 677
Joined: April 5th, 2013, 10:55 am
Contact:

Re: per mutation of a string in BASIC

Post by AltairClone »

Look up "Knuth Shuffle"

Mike
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest