[PD] Different [random] behaviour between macOS & linux?

Yann Seznec yann at yannseznec.com
Thu Mar 10 12:04:15 CET 2022


Hi! Here's thing I’m confused about…if I use [random] to generate some numbers on startup, it appears to have different behaviour on macOS and on linux (running on a raspberry pi). 

With a very simple patch generate a stream of random numbers using [random] (with no seed) and printing to console, on macOS it will create a different random set every time I launch the patch. On linux, it will generate the same set of numbers each time the patch is launched. It feels to me like the [random] object on linux is using the same seed each time, whereas on macOS it is either using a new seed each time or just not using a seed at all (if that’s possible, I’m clearly no random number specialist). 

Any thoughts appreciated. Thanks!
Yann




More information about the Pd-list mailing list