Function
randomNumber
(state: Random.PCGRandomState)
Source from the content-addressed store, hash-verified
| 33 | } |
| 34 | |
| 35 | const randomNumber = (state: Random.PCGRandomState): [number, Random.PCGRandomState] => { |
| 36 | const prng = new Random.PCGRandom() |
| 37 | prng.setState(state) |
| 38 | return [prng.number(), prng.getState()] |
| 39 | } |
| 40 | |
| 41 | const withState = <A>( |
| 42 | state: TRef.TRef<Random.PCGRandomState>, |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…