On 07/11/13 15:50, Jeff Hain wrote:
One could use that instead, which doesn't have that problem, and provides values in [0,1-1/2^53], with 1/2^53 granularity: public double nextDouble() { return (this.nextLong() & ((1L<<53)-1)) * (1.0/(1L<<53)); }
Thanks very much! We changed to use this approach, which does indeed seem like the best tradeoff. -Doug