Clean-up and README

This commit is contained in:
KuMiShi
2026-01-30 16:31:38 +01:00
parent 351f676611
commit f2f8af3aec
11 changed files with 38 additions and 22 deletions

15
utils/dice.py Normal file
View File

@@ -0,0 +1,15 @@
# Native imports
import random as rd
class Dice():
@staticmethod
def roll(num_faces=20):
return rd.randrange(start=1, stop=num_faces+1, step=1)
@staticmethod
def head_or_tails():
result = rd.randint(0,1)
if result: # true
return "head" # face
else:
return "tails" # pile