Does anyone know of an elegant way to take a series of numbers and display them in a random order where each number is displayed only once?
I suppose I could generate a random number and check to see if it has been displayed already but that seems clunky and there's no way to predict how long it would take to display the whole series.
I had also thought about adding all 20 numbers to an array, picking a random position in the array and displaying it, then removing that position from the array and picking a random position from the remaining 19 and so on until I've displayed all 20 numbers.
Any suggestions?