module MtRand: sig end
The interface of this pretty much follows the C reference version. It also produces the same output for a given seed as the reference version, of course.
The seed functions.
|
val init32 : int32 -> unitval init : int -> unitval init_array32 : int32 array -> unitval init_array : int array -> unitval init_bigarray32 : (int32, Bigarray.int32_elt, 'a) Bigarray.Array1.t -> unitval init_genarray : ('a -> int32) -> 'a array -> unitval init_from_file : string -> unitval init_from_channel : Pervasives.in_channel -> unitval init_from_descr : Unix.file_descr -> unitval urandom_found : unit -> boolval urandom_init : unit -> unitval self_init : unit -> unit
Functions returning random numbers
|
val uint32 : unit -> int32val int32 : unit -> int32val uint64 : unit -> int64val int64 : unit -> int64val unativeint : unit -> nativeintval nativeint : unit -> nativeintval uint : unit -> intval int : unit -> intval real1 : unit -> floatval real2 : unit -> floatval real3 : unit -> floatval res53 : unit -> floatmodule IntSource: sig endRand distributions
module Int32Source: sig endmodule FloatSource: sig end