Closed kharandziuk closed 6 years ago
For some reasons the code bellow returns me an error:
const seedrandom = require('seedrandom'); const rng = new seedrandom('seed', { saved: true }) console.log(rng()) console.log(rng.state())
the error: TypeError: rng.state is not a function and my environment:
TypeError: rng.state is not a function
node -v v10.6.0
https://github.com/davidbau/seedrandom/issues/33 – I read that answer and added new. It doesn't help
new
Try changing the second line:
const rng = new seedrandom('seed', { state: true })
So, stupid) Thanks! it works!
For some reasons the code bellow returns me an error:
the error:
TypeError: rng.state is not a function
and my environment:https://github.com/davidbau/seedrandom/issues/33 – I read that answer and added
new
. It doesn't help