Question: Java Programming! Follow the directions below to submit this assignment: Create a Java program. The class name for the program should be 'RandomDistributionCheck'. In the

Java Programming!

Follow the directions below to submit this assignment:

  1. Create a Java program.
  2. The class name for the program should be 'RandomDistributionCheck'.
  3. In the main method you should perform the following:
    • You should generate 10,000,000 random numbers between 0 - 19.
    • You should use an array to hold the number of times each random number is generated.
    • When you are done, generating random numbers, you should output the random number, the number of times it occurred, and the percentage of all occurrences. The output should be displayed using one line for each random number.
    • Use named constants for the number of iterations (10,000,000) and a second named constant for the number of unique random numbers to be generated (20).
  • include comments to show what each code does

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!