from random import randrange
import math
def main():
print "This program will simulate the probability of rolling "
print " a 5 of a knid in one throw."
pos = randrange(1,7)
dice = [0] *5
value = dice [ : ]
for pos in [0,1,2,3,4]:
dice[pos] = randrange(1,7)
roll = dice[pos]
print roll
counter = 0
counts = [0] * 7
for value in dice[ : ]:
counts[value] = counts[value] + 1
while counts != 5:
counter = counter + 1
else:
print counter
This is what I have so far to try to get my dice to roll I know I am missing something but I 've got writer's block can you assist?