Public Member Functions | |
| Normal () | |
| class constructor. | |
| double | sample (double m=0.0, double s=1.0) |
| given a mean m and std dev s, return a sample from a normal distribution. | |
Private Member Functions | |
| double | Random () |
| this method returns a random number in the range [0.0 ... 1.0]. | |
Private Attributes | |
| bool | mValid |
| has the second random number been cached? | |
| double | mX2 |
| this method generates pairs of random numbers, caching the second one here. | |
1.4.5