per mutation of a string in BASIC

General discussions related to the Altair 8800 Clone

per mutation of a string in BASIC

Postby gio74 » April 22nd, 2015, 6:12 am

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?
gio74
 
Posts: 54
Joined: January 30th, 2015, 2:43 pm

Re: per mutation of a string in BASIC

Postby AltairClone » April 22nd, 2015, 9:55 am

Look up "Knuth Shuffle"

Mike
AltairClone
Site Admin
 
Posts: 632
Joined: April 5th, 2013, 10:55 am


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 20 guests