Skip to content

Commit 664722f

Browse files
authored
Update README.md
1 parent 275450e commit 664722f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,17 @@ Creates a PCG generator instance given the initial state and seq for seed. You s
5252
`init_state` is the starting state for the RNG, you can pass any 64-bit value.
5353
`init_seq` selects the output sequence for the RNG, you can pass any 64-bit value, although only the low 63 bits are significant.
5454

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`)
5660

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.
5766

5867
### Common Methods (to all RNG instances)
5968

0 commit comments

Comments
 (0)