voom Posted December 14, 2003 Posted December 14, 2003 I have 52 image files and I have 5 places that have to be filled. Is there a way to place a random image in each place? Is there a way to create a loop that will be able to run through all the places and placing images in all of them. Quote
HJB417 Posted December 15, 2003 Posted December 15, 2003 How about using a random number and mod/remainder of the random number divided by 5. //in c#, will generate a number between 0 and 4. int value = new Random().Next()%5; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.