Closed ratkingsminion closed 3 years ago
The Math lib generates every random number with a new Random instance. All those instances might share the same seed if they are initiated in a very short time.
Fixed by sticking to a single instance. See https://github.com/wixette/isb/commit/5f0dbb3db0288c8e53a22224aa4bca843d348ec9
I'm using the Unity integration demo, and when executing the script with Math.Random() or Math.RandomInt() in, say, a For loop, the functions always return the same numbers. Example:
The spheres are created in a straight line.