Date: Wed, 26 May 1999 14:07:19 +0200
From: Damien Doligez <Damien.Doligez@inria.fr>
Message-Id: <199905261207.OAA17846@tobago.inria.fr>
To: caml-list@inria.fr
Subject: Re: Random.int on non unix platform
>From: Martin Quinson <mquinson@zeppelin-cb.de>
>How can I write this without the unix library ?
>
>Random.init (int_of_float (Unix.time ()));;
You can do:
Random.init (int_of_float (Sys.time ()));;
or you can input a random seed from the user and give it as argument
to Random.init.
-- Damien
This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:22 MET