2012-10-17 13:09:16 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* OCaml *)
|
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1995 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
1995-12-20 02:39:12 -08:00
|
|
|
open Random
|
|
|
|
|
2012-04-10 08:33:06 -07:00
|
|
|
let _ =
|
1995-12-20 02:39:12 -08:00
|
|
|
for i = 0 to 20 do
|
2012-07-30 11:04:46 -07:00
|
|
|
print_char ' '; print_int (int 1000);
|
1995-12-20 02:39:12 -08:00
|
|
|
done;
|
|
|
|
print_newline (); print_newline ();
|
|
|
|
for i = 0 to 20 do
|
2012-07-30 11:04:46 -07:00
|
|
|
print_char ' '; print_float (float 1000.);
|
1995-12-20 02:39:12 -08:00
|
|
|
done
|
|
|
|
|
|
|
|
let _ = exit 0
|