import random# generate random numbers 1 - 6die1 = random.randrange(6) + 1 die2 = random.randrange(6) + 1total = die1 + die2print "You rolled a", die1, "and a", die2, "for a total of", total