Boost logo

Boost :

From: Mario Ruetti (mruetti_at_[hidden])
Date: 2004-01-02 09:09:57

Hi Jens

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
_factor variable.

       Mario Rütti

> 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
> _______________________________________________
> Unsubscribe & other changes:

+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS!

Boost list run by bdawes at, gregod at, cpdaniel at, john at