Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Suitable range of input values for randomSeed()?

$
0
0
Shoot...as soon as I posted this I think I found an answer. It seems the input value is of the long data type (a 64-bit integer). I'm also reading somewhere online (here) that Math.random() in Java uses a seed of the data type long, but actually only 48 bits are used for random number generation. I'm assuming that this is how Processing works too. Anyone know for sure?


Viewing all articles
Browse latest Browse all 1768

Trending Articles