Skip to content

Instantly share code, notes, and snippets.

@jkern
Created December 3, 2009 18:30
Show Gist options
  • Save jkern/248398 to your computer and use it in GitHub Desktop.
Save jkern/248398 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
"""
Kenneth Bump Jr.
WIS 290
Fall block 2 2009"""
""" Horizontal Histogram question 1 wis 290 mid-term """
# pring number 0 to 9 in vertical format
# count how many times the numbers are randomly seleced until the count of 100
# print how many time the numbers are selected next to its number
import random # used to import the random module
number = [0]
for number in range (10): # selects number in the values of 0 to 9
print number
while number <=100: # until the count of 100 is reached, keep processing
print random.randrange(10)
number += 1 #adds one count to the counter
# still cant find some way to stop the loop process. aaahhhh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment