Create a folder called Unit99 and put your source file in this folder.

Create a Java program file called and place it in the Unit99 folder.

The program will generate 100 random integers between 0 and 9 (Hint: use Math.random()). The program will then display the count for each random number. You will need to use an array and loops. The output should look something like the following and will be different every time you run the program.

*** Here are the counts of the random numbers ***
Number of times 0 appeared: 10
Number of times 1 appeared: 12
Number of times 2 appeared: 16
Number of times 3 appeared: 9
Number of times 4 appeared: 12
Number of times 5 appeared: 7
Number of times 6 appeared: 7
Number of times 7 appeared: 8
Number of times 8 appeared: 10
Number of times 9 appeared: 9
Academic Honesty!
It is not our intention to break the school's academic policy. Projects posted are only used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.