/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
A two-person method to simulate die rolls (2023)
(blog.42yeah.is)
76 points
Fraterkes
| 2 comments |
05 Dec 25 19:32 UTC
|
HN request time: 0s
|
source
Show context
AnotherGoodName
◴[
07 Dec 25 21:37 UTC
]
No.
46185409
[source]
▶
>>46166161 (OP)
#
A + B mod n seems much easier than this.
replies(2):
>>46185422
#
>>46185434
#
1.
tomsmeding
◴[
07 Dec 25 21:39 UTC
]
No.
46185434
[source]
▶
>>46185409
#
The method proposed is just A - B mod n. The two are entirely equivalent.
replies(1):
>>46185485
#
ID:
GO
2.
AnotherGoodName
◴[
07 Dec 25 21:44 UTC
]
No.
46185485
[source]
▶
>>46185434 (TP)
#
A few extra steps to essentially manually do the mod part tbh. Would take their 20 line program to a 1 liner.
↑