Le 30/04/11 12:37, Christophe Raffalli a écrit : > 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 ... > In fact it was a change in random generator in ocaml 3.12 ------------------------------------ Objective Caml version 3.12.0+beta1 # Random.init 0;; - : unit = () # Random.float 1.0;; - : float = 0.849294619789682792 ------------------------------------ Objective Caml version 3.11.2 # Random.init 0;; - : unit = () # Random.float 1.0;; - : float = 0.454763353840783646 This means that any long living program should use its own random generator ? Cheers, Christophe