Hi Stine,
I got the answer from your follow-up questions, So rng_type was default but it's interesting that NEST 3.0 does not really have any effect on randomization when I set rng_seed using nest.rng_seed but only if I use nest.SetKernalStatus.....
if you run the following code
import nest
nest.ResetKernel()
nest.rng_seed = 307
# nest.SetKernelStatus({'rng_seed': 33})
for _ in range(10):
    v_m = nest.random.normal(mean=-51., std=10.)
    print(v_m.GetValue())
print(nest.rng_seed)
# print(nest.GetKernelStatus('rng_seed'))

No matter what value you set for seed the out is always the same set of 10 values. and nest.rng_seed value is updated for different set values.
However, It works if I use the old syntax.
I am assuming it's not a bug but is what 3.1 offers and was added partially in 3.0 version already.


On Wed, Nov 24, 2021 at 3:22 PM Stine Brekke Vennemo <stine.brekke.vennemo@nmbu.no> wrote:
Dear Maryada,

Am I understanding you correctly that every time you call v_m.GetValue() you get the same results?
I am not able to reproduce your results, I get a new value for V_m every time I switch rng_seed, and also if I call v_m.GetValue() a second time with the same seed without doing a ResetKernel.

To test that you are actually setting a new rng seed, maybe do a print(nest.rng_seed) to make sure?
What is your output if you type print(nest.rng_type)?

Best wishes,
Stine


From: Maryada Maryada <er.maryada@gmail.com>
Sent: Monday, November 22, 2021 12:40
To: NEST User Mailing List <users@nest-simulator.org>
Subject: [NEST Users] Random seed in NEST 3.0

Dear NEST users,

As I understood from the documentation unless you set the seed using nest.rng_seed, nest.random.normal (for instance) should return the same value 

nest.ResetKernel()
nest.rng_seed = 21#69696
v_m = nest.random.normal(mean=-51., std=10.)
v_m.GetValue()

In this code, I always receive the same v_m value for both cases, if the seed is set as 21 or 69696. The only time it changes is if I remove ResetKernel() call, which then is expected to return different values irrespective of rng_seed.
With this code below, I also got the same results irrespective of rng_seed value

nest.ResetKernel()
nest.rng_seed = 3333#69696
for _ in range(10):
    v_m = nest.random.normal(mean=-51., std=10.)
    print(v_m.GetValue())

So, maybe rng_seed doesn't reflect on nest.random.normal distribution. However, then how can I make sure it draws a different set of values?

--
Thanks and Regards

Maryada

_______________________________________________
NEST Users mailing list -- users@nest-simulator.org
To unsubscribe send an email to users-leave@nest-simulator.org


--
Thanks and Regards

Maryada