Purpose: Use an array in a simple, but complete problem.
Write a program that generates one hundred random digits, that is, the numbers 0 through 9,
inclusive. Use a list with ten entries, say counts, to store the counts for the number of 0's, 1's, 2's,
etc.
Your program should then use a separate loop to print out both the final observed counts and
observed frequencies. Also, after debugging, run your program one million (instead of one
hundred) times.
Hints:
• Use random.randint().
• This program is similar to -- but simpler than -- DiceStats.ipynb discussed in LEC 11 (at about 36:00 in the video)
Turn in: Name your notebook Rand10.ipynb. Comment it. Cut and paste your final output only in
comments at the end. Make sure your program runs correctly with the comments in place. Cut and
paste your entire program in the box below:
Fig: 1