Question: In Python: Write a program to generate 1000 random numbers between 0 and 20 inclusive. Print a table giving a count for the number of
In Python: Write a program to generate 1000 random numbers between 0 and 20 inclusive. Print a table giving a count for the number of times each number (between 0 and 20 inclusive) occurred. On one run, the following was the output. 0 occurred 54 times 1 occurred 53 times 2 occurred 41 times 3 occurred 49 times 4 occurred 34 times 5 occurred 49 times 6 occurred 34 times 7 occurred 48 times 8 occurred 61 times 9 occurred 42 times 10 occurred 51 times 11 occurred 46 times 12 occurred 56 times 13 occurred 47 times 14 occurred 50 times 15 occurred 59 times 16 occurred 37 times 17 occurred 43 times 18 occurred 44 times 19 occurred 46 times 20 occurred 56 times
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
