Revise Listing 3.8, Lottery.java, to generate a lottery of a two-digit number. The two digits in the

Question:

Revise Listing 3.8, Lottery.java, to generate a lottery of a two-digit number. The two digits in the number are distinct. (Hint: Generate the first digit. Use a loop to continuously generate the second digit until it is different from the first digit.)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: