Search:

Type: Posts; User: SnarkKnuckle

Search: Search took 0.11 seconds.

  1. Replies
    2
    Views
    6,522

    [SOLVED] Re: Dice Rolling Simulation

    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...
  2. Replies
    2
    Views
    6,522

    [SOLVED] Re: Dice Rolling Simulation

    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.
  3. Replies
    2
    Views
    6,522

    [SOLVED] Dice Rolling Simulation

    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...
Results 1 to 3 of 3