# T W O D I C E R O L L # Keith Dites # 24 September 2016 # Department of Computer Science # The University of Liverpool #Exercise-4_dice.py # Import the ranom module import random # Initialise variables used in the program MAX_NUMBER = 6 # Generate throw of first dice, random number in range 1 to 6 and output die1 = (random.randint(1,MAX_NUMBER)) print ("First dice throw:\t",die1) # Generate throw of second dice, random number in range 1 to 6 and output die2 = (random.randint(1,MAX_NUMBER)) print ("Second dice throws:\t",die2) # Calculation total = die1 + die2 # Outpu total print ("Total for two dice throw =\t",total)