Hello everyone,
I am trying to make a histogram for a project in my class and I really need some help. Here is the question that my instructor provided:
Create 1000 Random numbers between 0-100. Create a histogram of the values as a list. Make the bin range 10. Your book goes through a more complicated, but similar exercises.
Here is the code that I have so far:
import random
list = []
count = 0
for i in range(1000):
i = random.randrange(0, 101, 1)
print i
list = list + [i]
count = count + 1
print 'The total number of random numbers is: \t', count
Even with the help of my book I am unable to make the histogram.....can someone PLEASE help me...its driving me crazy.