Random stuff seem not so randomic when compiled and sent to raspberry
Hi,
i have an issue with raspberry Pi and RNBO patches. using objects like random, or list.scramble everything works just as expected on max. when patch is compiled and sent to a raspberry... random is ALWAYS the same number and sequence on reboot.
so, if you loadbang a random object on a max rnbo patch the number is always different... on a raspberry the number is always the same.
some ideas to solve this?
Oh huh, I hadn't noticed this but it sounds like a bug. I've made a ticket for it and have linked your forum post so I'll try to let you know if we come up with anything.
Francesco,
Can you share a patcher that exposes the problem? I just tried a very simple patcher pictured below and I'm getting unique values each time i create an instance.
Goodmorning Alex,
thank you for your work on it. the patcher i'm using is quite big and i'd need to simplify... but about this topic is not so different from your. The problem I have is not in creating instance, but in rebooting.
my patch is supposed to chose a random number on rebooting.... on a rasperry pi 4.
please let me know is it is sufficient or you need an upload of the whole patcher! than you very much!
Okay, that is helpful Francesco, I am able to reproduce this.. my first load of my example patcher gives me 8.19 printed on the console, then the next 3 are after reboots. Interesting! I'll look into this.
journalctl -u rnbooscquery | grep INFO | tail
Sep 06 15:39:05 c74rpi rnbooscquery[895]: INFO loadbang bang
Sep 06 15:39:05 c74rpi rnbooscquery[895]: INFO rand 8.195769
Sep 06 15:40:24 c74rpi rnbooscquery[1057]: INFO loadbang bang
Sep 06 15:40:24 c74rpi rnbooscquery[1057]: INFO rand 39.438293
Sep 06 15:41:58 c74rpi rnbooscquery[865]: INFO loadbang bang
Sep 06 15:41:58 c74rpi rnbooscquery[865]: INFO rand 39.438293
Sep 06 15:44:53 c74rpi rnbooscquery[1031]: INFO loadbang bang
Sep 06 15:44:53 c74rpi rnbooscquery[1031]: INFO rand 39.438293