afaik, rands is a pseudo random number generator and the results are
deterministic. Would it be possible, say, to bring out the time of day
into the scad code, so that it could be used as a seed for rands?
Am 22.10.24 um 16:08 schrieb Raymond West via Discuss:
afaik, rands is a pseudo random number generator and the results are
deterministic. Would it be possible, say, to bring out the time of day
into the scad code, so that it could be used as a seed for rands?
OpenSCAD seeds the random generator by itself on every new render.
You will get different values on every save
Thanks. I'd completely missed that. I won't tell you that I've just
written a python script to generate a list of random numbers seeded by
the system clock which can be imported to my scad code. 😳
On 22/10/2024 16:21, jjvbhh via Discuss wrote:
Am 22.10.24 um 16:08 schrieb Raymond West via Discuss:
afaik, rands is a pseudo random number generator and the results are
deterministic. Would it be possible, say, to bring out the time of
day into the scad code, so that it could be used as a seed for rands?
OpenSCAD seeds the random generator by itself on every new render.
You will get different values on every save
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org