1Random.State(3)                  OCaml library                 Random.State(3)
2
3
4

NAME

6       Random.State - no description
7

Module

9       Module   Random.State
10

Documentation

12       Module State
13        : sig end
14
15
16
17
18
19
20
21       type t
22
23
24       The type of PRNG states.
25
26
27
28       val make : int array -> t
29
30       Create a new state and initialize it with the given seed.
31
32
33
34       val make_self_init : unit -> t
35
36       Create  a  new  state and initialize it with a system-dependent low-en‐
37       tropy seed.
38
39
40
41       val copy : t -> t
42
43       Return a copy of the given state.
44
45
46
47       val bits : t -> int
48
49
50
51
52       val int : t -> int -> int
53
54
55
56
57       val int32 : t -> Int32.t -> Int32.t
58
59
60
61
62       val nativeint : t -> Nativeint.t -> Nativeint.t
63
64
65
66
67       val int64 : t -> Int64.t -> Int64.t
68
69
70
71
72       val float : t -> float -> float
73
74
75
76
77       val bool : t -> bool
78
79       These functions are the same as the basic functions, except  that  they
80       use (and update) the given PRNG state instead of the default one.
81
82
83
84
85
86OCamldoc                          2021-01-26                   Random.State(3)
Impressum