Behaviour of Random Number Generation #683
-
Hello! To experiment with stochastic models in GeNN I developed the following code ("Beta" is unused bc this is a simplification):
The output is the following: 1:0.004593 2:0.004593 1:0.008632 2:0.008632 1:0.012542 2:0.012542 1:0.016356 2:0.016356 1:0.020096 2:0.020096 1:0.023776 2:0.023776 1:0.027405 2:0.027405 1:0.030989 2:0.030989 1:0.034534 2:0.034534 1:0.038044 2:0.038044 I was expecting each neuron to spike about 1/2 of the time, as it happens when I try to mimic the behavior in numpy. I don´t understand:
What am I doing wrong? Thank you in advance for the support. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Apologies about this - definitely a bug. I have fixed in the |
Beta Was this translation helpful? Give feedback.
Apologies about this - definitely a bug. I have fixed in the
rng_fix
branch which I will merge later this morning.