Generate seed while runtime

Hey guys,

how can I create a unique seed while run time to save the script with this seed and use it for random functions. The goal is to have an instance of the script that returns the same result while using random function (random function generates values by using this seed).

Thanks in advance

maybe randomSeed();

but be careful because:


it always returns 73.0699 for me. It can be useful if you use it correctly, but still be aware of this. If you want to exit this loop of constant random values, just use something like:
randomSeed(millis()); or frame count, mouseX, day(), second(), hour(), or a sombination of them all.