The post discusses how to simulate dice rolls using coin flips, providing a method to represent dice of different sizes through binary addition. It explains the concept of rejection sampling to ensure fair rolls for non-power-of-2 sized dice, and explores the advanced use of discarded values for cryptographic purposes. The
•8m read time• From blog.demofox.org
Sort: