random images

voom

Newcomer
Joined
Dec 1, 2003
Messages
2
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.
 
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;
 
Back
Top