LoremIpsum::gauss
Gaussian Distribution.
This is some smart kid stuff. I went ahead and combined the N(0,1) logic with the N(m,s) logic into this single function. Used to calculate the number of words in a sentence, the number of sentences in a paragraph and the distribution of commas in a sentence.
Signature
private function gauss(float
$mean,
float
$std_dev )
Parameters
$mean
— float- average value
$std_dev
— float- stadnard deviation
Returns
- float
- calculated distribution