└── Simulate Throwing a Dice in Python /Simulate Throwing a Dice in Python: -------------------------------------------------------------------------------- 1 | from random import randint 2 | def throw_dice(): 3 | return randint(1, 6) 4 | print(throw_dice()) 5 | --------------------------------------------------------------------------------