Write a python function for dice roll asking user for input to continue and randomly give an output.
def dice():
import random
min = 1
max = 6
roll_again = 'y'
while roll_again == "yes" or roll_again == "y":
print("Rolling the dice...")
print(random.randint(min, max))
roll_again = input("Roll the dices again?")
from cryptography.fernet import Fernet