Boost logo

Boost Users :

From: Matthew Hurd (matt_at_[hidden])
Date: 2003-04-10 16:13:37


> From: Glen Knowles [mailto:gknowles_at_[hidden]]
> Subject: [Boost-Users] Boost random's min < max assert
>
> Uniform int contains an assert if min < max. If I ask for a random between
> 1
> and 1 I'm expecting a 1, not an assert. Is there some reason this was
> deemed
> inappropriate?
>
> Thanks,
> Glen

Yeah, I think it is the open interval [min,max) which is the traditional
random interval. Thus min < max, not min <= max.

Matt.


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