In this case, since it appears that Exorcist wants an array whose size is as large as the range of possible numbers, that may not be as efficient as normal shuffling since the chance of producing a...
Type: Posts; User: laserlight
In this case, since it appears that Exorcist wants an array whose size is as large as the range of possible numbers, that may not be as efficient as normal shuffling since the chance of producing a...
Fill the array with the integers from 1 to 10. Shuffle the array, and you're done.
To shuffle the array, first select at random one of the array elements, then swap it with the first element....