Reputation: 5761
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
Reputation: 688
If you are looking for random numbers that are "normally" distributed then see java.util.Random#nextGaussian()
Upvotes: 2