2 ms·
Because random(seed) has no specification for what the output will be. random() should only be used if you specifically want a non-deterministic value. The func
by somat 3y ago
Because random(seed) has no specification for what the output will be. random() should only be used if you specifically want a non-deterministic value. The function you want to use for uniform distribution in a deterministic manner is hash(value)