[Bug libstdc++/43660] range of random-number generator seems wrong/confusing
- To: debian-gcc@lists.debian.org
- Subject: [Bug libstdc++/43660] range of random-number generator seems wrong/confusing
- From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
- Date: Mon, 09 Mar 2015 12:41:03 +0000
- Message-id: <bug-43660-5724-TJMLyVQa4r@http.gcc.gnu.org/bugzilla/>
- In-reply-to: <bug-43660-5724@http.gcc.gnu.org/bugzilla/>
- References: <bug-43660-5724@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43660
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> (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<float> with bounds of
> > 0 and 1 will indeed return 1); but it's less clear its a bug in those
> > cases (although, for instance, boost's random implementation never
> > seems to return the upper bound).]
>
> Again, referring to the latest draft:
> "A uniform_real_distribution random number distribution produces random
> numbers x, a <= x < b"
>
> So that does appear to be a bug
PR 64351 deals with that case.
--
You are receiving this mail because:
You reported the bug.
Reply to: