Question: Write a Java program to generate 6 random lottery numbers. Your program should generate 5 numbers between 1 and 60. Use a for loop to

Write a Java program to generate 6 random lottery numbers. Your program should generate 5 numbers between 1 and 60. Use a for loop to control the 6 iterations. Output the numbers to the command line on a single line e.g.: 6 14 51 35 22 43

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!