simple question about function/random #'s
I'm creating a program that has a function that rolls a die to create a random number between 1-6. I have that figured out and running. The problem is that I need to call the function several times during the program, each with an individual result (randomly generated doubles are acceptable, though). These numbers need to be compared, too. The function is caleld up to 20 times, and i don't want to create 20 different variables within my main, all equal to the function output. Is there any way that I am able to do this?