# This illustrates how a function can return
# two values at once
import random

def rollDice():
    first = random.randint(1, 6)
    second = random.randint(1, 6)
    return first, second

def main():
    for x in range(0, 10):
        a, b = rollDice()
        print( "You rolled %d and %d; total is %d"%(a, b, a+b))

main()
    
