our/cmds/fruit

17 lines
243 B
Plaintext
Raw Permalink Normal View History

2022-08-24 02:40:36 +00:00
#!/usr/bin/env python3
import random
from io import StringIO
base = 0x1f345
nSides = 14
rounds = 14
fp = StringIO()
for i in range(rounds):
roll = random.randint(0, nSides)
chcr = base + roll
fp.write(chr(chcr))
print(fp.getvalue())