David Parks
David Parks

Reputation: 32081

PHP: Random number from a normal distribution

In PHP, can I get a set of random numbers which conform to a specified mean and standard deviation?

Upvotes: 8

Views: 3386

Answers (1)

David Schwartz
David Schwartz

Reputation: 182819

The stats_rand_gen_normal function will do exactly this. (Assuming you mean a normal distribution.)

Upvotes: 7

Related Questions