| ▲ | Simulating the Ladybug Clock Puzzle(austinhenley.com) | |||||||||||||
| 21 points by azhenley 2 days ago | 4 comments | ||||||||||||||
| ▲ | archargelod an hour ago | parent | next [-] | |||||||||||||
> After 5000 runs, they were all 8.4-9.7% This sample size is really small. I ran 100 million simulations in Nim[0] (takes around a minute). And distribution converges toward 9.09% on all positions equally:
[0] - https://play.nim-lang.org/#pasty=hwdfbsfh (reduced amount of runs to not abuse playground server resources) | ||||||||||||||
| ▲ | ludwik 2 hours ago | parent | prev [-] | |||||||||||||
Shouldn't the code say:
Or have I misunderstood something? | ||||||||||||||
| ||||||||||||||