Skip to content

What's the best way to index into a PRNG sequence? #12395

Answered by froystig
NeilGirdhar asked this question in Q&A
Discussion options

You must be logged in to vote

We had precisely the example B in mind for fold_in usage. I would go with that!

Is there any downside to folding in integers into a generator instead of splitting it?

If anything, there are possible advantages for working memory.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by NeilGirdhar
Comment options

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

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