Prajna


RandomWithSalt

This class is created for initialization of Random(), in which the Random generator can be correlated as they have the same time signature. A salt is added to make sure that the resultant random number is different based on different salt value.

Constructors

ConstructorDescription
new(salt)
Signature: salt:int -> RandomWithSalt

Construct Random() class with a salt, so that different random generator seed is used in a multithread environment.

new(salt)
Signature: salt:int64 -> RandomWithSalt
Fork me on GitHub