caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] portablility of random.mli in the stdlib
@ 2011-04-30 10:37 Christophe Raffalli
  2011-04-30 11:14 ` Christophe Raffalli
  0 siblings, 1 reply; 7+ messages in thread
From: Christophe Raffalli @ 2011-04-30 10:37 UTC (permalink / raw)
  To: OCaml; +Cc: Pierre Hyvernat, Guillaume Theyssier

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-04-30 15:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-30 10:37 [Caml-list] portablility of random.mli in the stdlib Christophe Raffalli
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

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 NNTP newsgroup(s).