Dice roll  can be simulated by using the random module in python.A dice simulator is a simple computer model that can roll a dice for us.A random module is a built in module in Python to generate pseudo random variables.This module can be easily imported into our source code.
After importing  random module we can generate the random intergers with the help of the function random.randint().This function basically returns the random integers where we specify the range.
In a dice roll the smallest value is 1 and largest is 6, these are the min and max values for the function. The random.randint() function generates the random number between 1 and 6.