|
Boost Users : |
Subject: Re: [Boost-users] [Random] uniform_int::operator()(Engine &, result_type)
From: Hossein Haeri (powerprogman_at_[hidden])
Date: 2010-07-20 09:43:32
Dear Steven,
> > template<typename Engine>
> > result_type operator()(Engine & eng, result_type
> n) ;
> >
> > Do I understand it correctly that this generates a
> number in [min, n] (probably subject to some good
> conditions)?
> >
>
> No. It generates a number in [0, n).
Are you sure it's [0, n) rather than [0, n] -- the usual practice of Boost.Random? And, who should I remind to add the descriptions for this operator ()?
Cheers,
--Hossein
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net