samedi 28 août 2021

Distribution of java.util.Random.nextX upon shared usage

As written in the javadoc of java.util.Random methods Random.nextX returns the uniformly distributed pseudorandom values.

If the instance of the Random class is shared between different users, and users call the same nextX method with different frequency (assume the frequency is distributed normally).

My question is: Would each user get a uniformly or normally distributed sequence of numbers?




Aucun commentaire:

Enregistrer un commentaire