From: Janek Kozicki (janek_listy_at_[hidden])
Date: 2006-03-18 05:15:20
> John Maddock wrote:
> > I seriously hope I'm doing something wrong here, but the last 20 bits in a
> > double returned from uniform_real appear to always be zero. Is this by
> > design? I really hope not!
> If memory serves, I've hit on this before - but I don't think you'll
> like answer - you're going to have to push the variate_generator gen (,
> and its dependants rnd, and ur_a) into the global namespace.
I had problems with copy constructor in my class that contained random
generator, so as a quick'n'dirty solution I decided to put that
generator as global variable in global space of my program. Looks like I
was lucky to do that - otherwise I'd get non-random numbers?
-- Janek Kozicki |