Boost logo

Boost Users :

From: David Pearce (yg-boost-users_at_[hidden])
Date: 2003-07-08 03:50:42


Hello,

> template <class T>
> T random(T min, T max)
> {
> boost::random_number_generator<RngType, T> rng(pseudo_rng);
> return rng(max - min + 1) + min;
> }

I presume that you sometimes call random with min = max ?

Dave

> Am I doing something wrong, or is there a fault in the uniform_int
> algorithm?
>
> Thanks,
> Matt.
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> mail.administrator_at_[hidden]
>
> **********************************************************************
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Info: <http://www.boost.org>
> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
> Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>


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