Skip to content

Conversation

@sanchalitorpe-source
Copy link

This PR clarifies that CSA random and block-style operations rely on Python's global random number generator and do not re-seed on each call. This explains why repeated calls with identical parameters may produce different realizations.

This is a documentation-only change and does not modify runtime behavior.

Fixes #14

@mdjurfeldt
Copy link
Contributor

Dear Sanchali, I'll look at this PR, but will be able to do it first in a few days.

@sanchalitorpe-source
Copy link
Author

Thank you very much for the update, Mikael.

No problem at all — happy to wait. Please let me know if you’d like any wording changes or clarifications.

Best regards,
Sanchali

@mdjurfeldt
Copy link
Contributor

mdjurfeldt commented Jan 24, 2026

I think this is the wrong place for this comment. There are many concepts in CSA that need to be explained. How randomness behaves is one of them and it applies not only to the _elementary module but to others as well. I think this kind of explanation should be in the README.md, the tutorial and/or the (almost nonexistent) manual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

shouldn't block() re-seed every time it is called?

2 participants