INCF / csa

The Python implementation of the Connection-Set Algebra
GNU General Public License v3.0
13 stars 17 forks source link

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

Open lungsi opened 5 years ago

lungsi commented 5 years ago

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