multiple CreateRandoms producing identical patterns of numbers?

262 views
Skip to first unread message

Edmund Chong

unread,
Nov 6, 2022, 5:24:24 PM11/6/22
to Bonsai Users
Hi,

I am using CreateRandom-->CreateContinuousUniform to generate random numbers. I find that when I initialize multiple of these at the same time, the random numbers they produce, follow the same pattern (see plots--even if the range of the distribution is different).
random.png


This behavior goes away if I set a tiny delay to force different randomizers to be initialized at slightly different times, e.g.:

random.png

Also seems to go away if I connect all my distributions to a single CreateRandom.


What would be the "correct" way of doing this for a whole bunch of randomizers that I require? a) What if I need randomizers in different parts of the bonsai script and cannot connect them to the same single CreateRandom? b) Or should I try to add some jitter to the time-dependent seed (how?) for each CreateRandom?

Thanks!
-Edmund

brunocruz

unread,
Nov 7, 2022, 4:21:13 AM11/7/22
to Bonsai Users
Answered it on GitHub discussions

Reply all
Reply to author
Forward
0 new messages