Solved:
//Roll the die 36,000 times
for ( int roll = 1; roll <=36000; roll++ )
{
int die1 = 1 + randomNumbers.nextInt ( 6 );
int die2 = 1 + randomNumbers.nextInt ( 6 );
int...
Type: Posts; User: SnarkKnuckle
Solved:
//Roll the die 36,000 times
for ( int roll = 1; roll <=36000; roll++ )
{
int die1 = 1 + randomNumbers.nextInt ( 6 );
int die2 = 1 + randomNumbers.nextInt ( 6 );
int...
I think I may have a little more information but now I'm getting a dice1 cannot be initialized and I do not believe I am totalling up the two correctly to store them back into the array.
I have coded a dice rolling simulation to roll a single die 36,000 times, store the data in the array and display how many times the face value landed. My question is what do I need to do to change...