For a college project we are making a game which displays a random image from a file and shows this with 4 answer buttons and the image must be identified by the user.
There are 8 pictures in the game and the array the_pictures is set up accordingly.
Could anyone enlighten me on why the random number generator will sometimes generate the number 9 as before now it has not done so and all of a sudden its started generating 9 since i fiddled with the code.
RandomNumber = (Rnd * 8)
PictureDisplay.Picture = the_pictures(RandomNumber)
Loop Until RandomNumber <> 0
Many Thanks in Advance