Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lungsi opened this issue Nov 28, 2018 · 0 comments
Open

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

lungsi opened this issue Nov 28, 2018 · 0 comments

Comments

@lungsi
Copy link

lungsi commented Nov 28, 2018

Python 2.7 with pip install csa

Based on what I understand block() changes seed every time it is evoked so for

screenshot from 2018-11-28 14-36-32

this results in the above.

However, for the same probability of success, here r = random(0.5) if we evoke block of the same size

screenshot from 2018-11-28 14-36-55

and again

screenshot from 2018-11-28 14-37-09

and so on ...

If block() re-seeds every time it is called, should all of the above look exactly the same?

PS: This issue is persistent also for python 3.7

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

No branches or pull requests

1 participant