As you can see everytime I'll run this while loop the program will generate a different color. The thing is that I want it to first generate a number and then everytime I run the while loop again I want that number to be constant eg. getRandomNum() should be the same everytime I run the while loop but different everytime I start the program. I hope you guys get it.
// color["numberherebetween1an d5"] is a number that "links" to an offset for
// a masterpic with many small pics in different colors.
// Eg. if the program generates the number 1 the offset is 0.
// If it generates the number 2 the offset becomes 29 ect.
blitAlphaImageToScreen(co lor[getRandomNum(1,5)],0,29,25, master_image, 154, 159);