- 1
Write a program to design a dice throw.
plz provide the program
1 Answer
- 1
Please use "SEARCH BAR" before posting Questions.
And tell in which language you want.
Here's an example in Python "Not By Me" :
import random
class Dice:
def roll (self):
first = random.randint(1, 6)
second = random.randint(1, 6)
return first, second
dice = Dice()
print(dice.roll())
https://code.sololearn.com/cwhIUnehjbvm/?ref=app