user978122
user978122

Reputation: 5761

Normalizing random in Java

Could someone point me to a normalized random function for Java? The regular random function, as I understand it, doesn't have the kind of behaviour that humans think of as random; however, I remember from my stat class that a normalized random function does.

This is for an autodidactic program that needs to randomly decide which question to display next.

Upvotes: 0

Views: 229

Answers (1)

lifelongcoug
lifelongcoug

Reputation: 688

If you are looking for random numbers that are "normally" distributed then see java.util.Random#nextGaussian()

Upvotes: 2

Related Questions