This is a known method for a simple way of getting an unbiased bit from a series of (possibly biased) coin flips.<p>Stated another way, the algorithm for getting an unbiased bit from a biased coin is:<p>1. Flip the coin twice.<p>2. If it&#x27;s both heads or both tails, discard result and go back to 1.<p>3. If it&#x27;s heads then tails, result = 0<p>4. If it&#x27;s tails then heads, result = 1