Hacker News new | ask | show | jobs
by jwilk 1532 days ago
That can't be right:

  // Returns k with probability 2^(k-1).
Did you mean 2^(-k-1)?
1 comments

Yes, woops, fixed.