Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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
0 · ·