Skip to content

understanding random number generation in fast-check #5052

Answered by dubzzz
skybrian asked this question in Q&A
Discussion options

You must be logged in to vote

As you pointed out, there is currently a bug causing distinct streams of values produced during the same iteration to be quite similar (offset by N).

We used to have the same issue years ago but between distinct runs and with all arbitraries. At that time our strategy has been to come up with classical tooling around PRNG by relying on jumps. Unfortunately we missed streams (will be fixed soon, I just need to find a short window to fix and test it).

So far, the plan is to stick with jumps. It remains a usual way to make draws independent from each other's. It's a key need for the arbitraries: one arbitrary should not impact another one after the generate. In other words once created strea…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dubzzz
Comment options

Answer selected by skybrian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants