Inherited by Draw, Iconst, Poisson, and Randint.
Idist declares the 'int sample()' method for discrete distribution classes. All derived classes implement this method to provide the random numbers in different distributions.
Public Member Functions | |
Idist (DistContext *c, Label title) | |
Construction. | |
virtual int | sample ()=0 |
Get next random number. |
|
Construction.
|
|
Get next random number. This function returns the next random number. It is implemented in derived classes which generate random numbers in different distributions. |