import pylab import random SIZE = 10000 random.seed() real_rand_vars = [] real_rand_vars = [random.randint(1,7) for val in xrange(SIZE)] pylab.hist(real_rand_vars, 10) pylab.xlabel("dashed") pylab.ylabel("Count") pylab.show() #
时间: 2024-11-05 21:59:20