Q9 College Board

Screenshot 2024-01-03 at 3 29 25 PM

Math.random() for Simulating Dice Rolls

Introduction

Math.random() Range

Adjusting the Die Range

Simulating Two Dice

Process of Elimination

Conclusion

Steps/Process for Q9

Hacks

Code Q9 in java, where it rolls two dice, displays each dice and finds the sum of both of them, using Math.Random

public class DiceRollSimulator {

    public static void main(String[] args) {
        // finish the method
    }
}
DiceRollSimulator.main(null)