mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 15:06:19 +00:00
autopushed
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ def rand(n):
|
|||||||
for i in range(2, n+1):
|
for i in range(2, n+1):
|
||||||
r = random.randint(1, i)
|
r = random.randint(1, i)
|
||||||
if i == 2:
|
if i == 2:
|
||||||
proof.append(f"You throw a fair coin and it lands [[{bool(r)}]].")
|
proof.append(f"You throw a fair coin and it lands [[{bool(r-1)}]].")
|
||||||
else:
|
else:
|
||||||
proof.append(f"You throw a die of [[{i}]] sides and it comes up [[{r}]].")
|
proof.append(f"You throw a die of [[{i}]] sides and it comes up [[{r}]].")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user