--- Comment #3 from redi at gcc dot gnu dot org 2010-04-06 10:53 ---
(In reply to comment #0)
>
> As best as I can tell, std::random_shuffle wants its random-number
> generating functor to return results in the range [0,N), where N is the
> parameter it passes to the functo
--- Comment #2 from redi at gcc dot gnu dot org 2010-04-06 10:40 ---
(In reply to comment #0)
> [Note that the same issue exists with other ways of invoking using the
> generator (e.g., a std::uniform_real_distribution with bounds of
> 0 and 1 will indeed return 1); but it
--- Comment #1 from redi at gcc dot gnu dot org 2010-04-06 10:38 ---
n1933 is ancient history, the RNG pieces have changed significantly
In the current draft it says:
"A uniform_int_distribution random number distribution produces random integers
i, a <= i <= b"
S
3 matches
Mail list logo