import random as rand #imports library random #sets library alias to randsize = int(input("Enter dice size:")) #Asks for dice facesprint("You rolled a ",rand.randint(1,size)) #Prints result of roll using randint #from the random library