3 ms·
This is a good example of where JadeNB's comment about it being dangerous to roll RNGs where it matters[0] applies. [0] https://news.ycombinator.com/item?id=16
by zeveb 9y ago
This is a good example of where JadeNB's comment about it being dangerous to roll RNGs where it matters[0] applies.
[0] https://news.ycombinator.com/item?id=16081264 https://news.ycombinator.com/item?id=16081264
- gfody 9y agoThat comment makes a good point but this was no home-rolled RNG. unif(0,1) simply came back less than 0.4 a few hundred times in a row, or the Random Number God demanded sacrifice and was propitiated (the client fired us and the RNG has behaved ever since).