# L-4 MCS 275 Wed 20 Jan 2010 : usehistogram from random import uniform from classhistogram import * k = input('Give #bins : ') n = input('Give #samples : ') h = Histogram(k) for i in range(0,n): h.add(uniform(0,1)) print 'The histogram : ' + str(h)