Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by necovek

5 days ago

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 ;)).

1 comment

necovek

Reply

throwawayffffas  4 days ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities