From: Christophe Raffalli <craff73@gmail.com>
To: OCaml <caml-list@inria.fr>
Cc: Pierre Hyvernat <pierre.hyvernat@univ-savoie.fr>,
Guillaume Theyssier <guillaume.theyssier@univ-savoie.fr>
Subject: [Caml-list] portablility of random.mli in the stdlib
Date: Sat, 30 Apr 2011 12:37:42 +0200 [thread overview]
Message-ID: <4DBBE676.8070101@univ-savoie.fr> (raw)
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
Hello,
Playing with my game (see my previous post), I saw that it seems that
the random number generator in not portable ... The same seed will not
give the same random sequence on a 32 bits and 64 bits machine ...
If you use Random.int, this seems normal ...
But if you use only Random.float or other functions consuming the same
number of bits, this
is not what I expected ....
What do other people think ? Is this a sort of bug ?
Cheers,
Chrisophe
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
next reply other threads:[~2011-04-30 10:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-30 10:37 Christophe Raffalli [this message]
2011-04-30 11:14 ` Christophe Raffalli
2011-04-30 11:26 ` Török Edwin
2011-04-30 11:42 ` Christophe Raffalli
2011-04-30 15:38 ` Andrei Formiga
2011-04-30 12:06 ` Alexandre Pilkiewicz
2011-04-30 13:33 ` Andrew
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=4DBBE676.8070101@univ-savoie.fr \
--to=craff73@gmail.com \
--cc=caml-list@inria.fr \
--cc=guillaume.theyssier@univ-savoie.fr \
--cc=pierre.hyvernat@univ-savoie.fr \
/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