Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Intel's Ivy Bridge reviewed. Parent comment
The simplest approach I know of is to extract a random bit repeatedly until it transitions from 0 to 1 or 1 to 0, and then use the second result. 50/50 split, regardless of any (constant) bias in the generator.
There are no comments on this comment yet.
The simplest approach I know of is to extract a random bit repeatedly until it transitions from 0 to 1 or 1 to 0, and then use the second result. 50/50 split, regardless of any (constant) bias in the generator.