News for hackers. Stuff that matters.
Re:State of the art of random double generation by TheLoneWolfling on Friday April 10, 2015 @05:43PM (#9357254)
Nice.

A pity it requires knowing sizes in advance. I wonder... Could you do something similar "afterwards"?

Re:State of the art of random double generation by mark-r on Friday April 10, 2015 @05:55PM (#9357319)
Sure you can, I used a short program myself to calculate the best case outcomes. The question is whether it would be worth the bother. Usually the range you request is much smaller than the range of your random number generator, so the number of regenerations required are nowhere near the worst case - and the cost of generating a random number isn't enough to get worried about.