could someone help me with this im trying to make a program that displays five dice rolls of two dice where each die is a number from 1 to 6, and shows the total. when run, the program should look like this:
2 4= 6
1 1= 2
6 6= 12
4 3= 7
5 2= 7
Ok i got the first part i think but when i run it, it comes up with the same output everytime. also it has to be in some kind of loop. I dont want it to be the same output every time its like the randomizer isnt working. hears what i have so far:
/*Random Numbers
3/25/03 */
#include <iostream.h>
#include <math.h> //Randomizer
int main()
{
int die
for (int roll= 1; roll<= 5; roll++)
double die=1+random(6)
cout<<die<<endl;
return(0);
}