You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,8 +52,17 @@ Creates a PCG generator instance given the initial state and seq for seed. You s
52
52
`init_state` is the starting state for the RNG, you can pass any 64-bit value.
53
53
`init_seq` selects the output sequence for the RNG, you can pass any 64-bit value, although only the low 63 bits are significant.
54
54
55
-
**Caution:** I don't recommend using of 64-bit integers. Consider using 32-bit integers instead.
55
+
#### rng.tinymt32()
56
+
57
+
Creates a TinyMT32 generator instance with a entropy-based seed of 4 elements. You should use this if you don't care about explicitly providing a seed.
58
+
59
+
#### rng.tinymt32(`seed`)
56
60
61
+
Creates a TinyMT32 generator wth a given seed. You can pass any 64-bit value, but 0 will have the same result as a random seed.
62
+
You should use this to specify the seed.
63
+
64
+
65
+
**Caution:** I don't recommend using of 64-bit integers. Consider using 32-bit integers instead.
0 commit comments