Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2003-12-27 06:06:21


Hello!

> I think there is a problem in the uniform_int method which
> generates integer random numbers in a specific range.
> My generator returns big numbers in order of 2^52 to
> the uniform_int method. uniform_int calculates a factor
> (_factor) to rescale the generator numbers to the
> specified range.

What version of boost uniform_int are you using?
I've switched boost's random number interface (in the CVS)
to the one proposed in my ISO C++ proposals, and the current
uniform_int.hpp does not have a variable _factor in it.

Jens Maurer


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk