Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
selimanac committed Sep 28, 2019
1 parent a92ebca commit b309128
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,19 @@ You can use PCG Random in your own project by adding this project as a [Defold l

### rnd.seed(`init_state, init_seq`)

Seeds the random number generator.
Seeds the random number generator.
Random number generator is always initialized by using entropy seed. You don't need to call this method unless you want to control the seed.

`init_state` is the starting state for the RNG, you can pass any 64-bit value.

`init_state` is the starting state for the RNG, you can pass any 64-bit value.
`init_seq` selects the output sequence for the RNG, you can pass any 64-bit value, although only the low 63 bits are significant.


**Caution:** I don't recommend using of 64-bit integers. Consider using 32-bit integers instead.

### rnd.seed()

Reset random number generator by using entropy seed.
Re-seed the random number generator by using entropy seed.
Random number generator is always initialized by using entropy seed. You don’t need to call this method unless you want to re-seed.

### rnd.number()

Expand Down

0 comments on commit b309128

Please sign in to comment.