Solved

Suppose That the Chance to Hit the Jackpot in a Lottery

Question 27

Multiple Choice

Suppose that the chance to hit the jackpot in a lottery is one in one million. Which of the expressions simulates that random number? (Assume Random generator = new Random() ;)


A) generator.nextDouble() * 1000000
B) generator.nextDouble() * 100000
C) generator.nextDouble() * 9999990 + 1
D) generator.nextDouble() * 1000000 + 1

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions