How Coin Flips Work
A coin has two sides. In a simplified fair model, each toss can land on either side and each outcome has a probability of one half, or 50 percent.
What happens during a physical toss?
A real coin's motion depends on its initial position, force, rotation, air resistance and the surface where it lands. A well-balanced toss is commonly modelled as having two equally likely outcomes, although real-world conditions can introduce small biases.
How an online coin flip works
A digital tool does not need to simulate every physical force to select an outcome. It can use a cryptographically secure random number generator supplied by the browser, then map the random value to one of the two sides.
Why use a cryptographic random generator?
Web Crypto provides stronger random values than simple predictable pseudo-random functions intended for animations. My Toss Coin uses the browser's crypto API for outcome selection and uses animation only to present the result.
What does a coin flip not do?
It does not reveal what will happen in the future or make a difficult decision automatically correct. It is best used as a light way to break a tie between two acceptable options.