uml

  1. double x = Math.random() * 10;      _____________________
  2. int n = (int)(Math.random() * 10);    _____________________
  3. int n = (int)(1 + Math.random() * 10);  ____________________

3)  Assign n a random integer value from 1 to 100.

 

4)  Assign n a random integer value from 2 to 100 inclusive such that n must be an even number.

 

 

5)  Assign x a random integer value from 40 to 50, inclusive.

 

6)  Assign y a random integer value from 40 to 50 (inclusive) such that y does not equal x.

 

7)  Assign y a different random integer value from 40 to 50 (inclusive) such that it does not equal its previous value.

 

8)  Count the number of times a coin comes up heads in 10000 coin flips.

 

 

9)  Count the number of times a six-sided die comes up 5 in 10000 rolls.