Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Retro Wolf on Sat 27/04/2019 00:29:54

Title: Shuffling arrays
Post by: Retro Wolf on Sat 27/04/2019 00:29:54
Say I have an array myArray[10] that might have any numbers in, but let's say: [0,1,2,3,4,5,6,7,8,9], how might I go about randomly shuffling those numbers in a new array?
Cheers.
Title: Re: Shuffling arrays
Post by: Crimson Wizard on Sat 27/04/2019 00:53:54
Searching for "shuffle" on forums, first two links:
https://www.adventuregamestudio.co.uk/forums/index.php?topic=51992.0
https://www.adventuregamestudio.co.uk/forums/index.php?topic=55509.0
Title: Re: Shuffling arrays
Post by: Retro Wolf on Sun 28/04/2019 10:55:46
Must have been using wrong keywords, cheers CW