Skip to content

Commit 3d1de7c

Browse files
committed
rolling a dice - getting random tuple - random mod
1 parent 2d1006a commit 3d1de7c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

my_numeric_pkg/roll_a_dice.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import random
2+
3+
4+
class Dice:
5+
def roll_a_dice(self):
6+
values = (random.randint(1, 6), random.randint(1, 6))
7+
return values
8+
9+
10+
dice1 = Dice()
11+
12+
for i in range(10):
13+
print(dice1.roll_a_dice())

0 commit comments

Comments
 (0)