public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "redi at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/43660] range of random-number generator seems wrong/confusing
Date: Tue, 06 Apr 2010 10:41:00 -0000	[thread overview]
Message-ID: <20100406104051.6510.qmail@sourceware.org> (raw)
In-Reply-To: <bug-43660-5724@http.gcc.gnu.org/bugzilla/>



------- 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<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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43660


  parent reply	other threads:[~2010-04-06 10:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-06  1:56 [Bug libstdc++/43660] New: " debian-gcc at lists dot debian dot org
2010-04-06 10:38 ` [Bug libstdc++/43660] " redi at gcc dot gnu dot org
2010-04-06 10:41 ` redi at gcc dot gnu dot org [this message]
2010-04-06 10:54 ` redi at gcc dot gnu dot org
2010-04-06 11:00 ` paolo dot carlini at oracle dot com
     [not found] <bug-43660-4@http.gcc.gnu.org/bugzilla/>
2015-03-09 12:41 ` redi at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100406104051.6510.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).