logoalt Hacker News

necovekyesterday at 2:17 PM1 replyview on HN

I can imagine someone doing a

  pick = rnrand16() - 0x7fff
  if pick > 0...
where these are not equally likely anymore (I may have an off-by-one anyway ;)).

Replies

throwawayffffasyesterday at 10:32 PM

Sure but by one part in 32k so it's not a big deal.