From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@lri.fr>
To: Richard Jones <rich@annexia.org>
Cc: Christian Lindig <lindig@cs.uni-sb.de>,
Caml List <caml-list@inria.fr>,
caml-bugs@inria.fr
Subject: Re: [Caml-list] Bug? Random.int max_int on AMD64 fails
Date: Wed, 1 Jun 2005 14:27:12 +0200 [thread overview]
Message-ID: <17053.43424.797745.36556@gargle.gargle.HOWL> (raw)
In-Reply-To: <20050601085814.GA17158@furbychan.cocan.org>
Richard Jones writes:
> On Wed, Jun 01, 2005 at 10:14:01AM +0200, Christian Lindig wrote:
> > ># Random.int max_int;;
> > >Exception: Invalid_argument "Random.int".
> > >#
>
> The documentation states:
>
> (** [Random.int bound] returns a random integer between 0 (inclusive)
> and [bound] (exclusive). [bound] must be more than 0 and less
> than 2{^30}. *)
>
> On 64 bit machines, max_int is 2^62 or thereabouts.
... and I'll add to this answer that you have Random.int64 available.
--
Jean-Christophe
prev parent reply other threads:[~2005-06-01 12:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-01 8:14 Christian Lindig
2005-06-01 8:58 ` [Caml-list] " Richard Jones
2005-06-01 12:27 ` Jean-Christophe Filliatre [this message]
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=17053.43424.797745.36556@gargle.gargle.HOWL \
--to=jean-christophe.filliatre@lri.fr \
--cc=caml-bugs@inria.fr \
--cc=caml-list@inria.fr \
--cc=lindig@cs.uni-sb.de \
--cc=rich@annexia.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