1Random.State(3) OCaml library Random.State(3)
2
3
4
6 Random.State - no description
7
9 Module Random.State
10
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
29 val make : int array -> t
30
31 Create a new state and initialize it with the given seed.
32
33
34
35
36 val make_self_init : unit -> t
37
38 Create a new state and initialize it with a system-dependent
39 low-entropy seed.
40
41
42
43
44 val copy : t -> t
45
46 Return a copy of the given state.
47
48
49
50
51 val bits : t -> int
52
53
54
55
56 val int : t -> int -> int
57
58
59
60
61 val int32 : t -> Int32.t -> Int32.t
62
63
64
65
66 val nativeint : t -> Nativeint.t -> Nativeint.t
67
68
69
70
71 val int64 : t -> Int64.t -> Int64.t
72
73
74
75
76 val float : t -> float -> float
77
78
79
80
81 val bool : t -> bool
82
83 These functions are the same as the basic functions, except that they
84 use (and update) the given PRNG state instead of the default one.
85
86
87
88
89
90
91OCamldoc 2017-03-22 Random.State(3)