From: Mario Ruetti (mruetti_at_[hidden])
Date: 2004-01-02 09:09:57
I think you misunderstood me.
The problem with uniform_int still remains. I use uniform_int to
generate numbers between 0 and 10 or so, from a much bigger
range (0..2^52). In uniform_int there is uniform_smallint called.
And in uniform_smallint we get the problem with the overflowing
> > 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
> Unsubscribe & other changes:
-- +++ GMX - die erste Adresse für Mail, Message, More +++ Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk