|
◆ init_zigexp()
void init_zigexp |
( |
int |
n | ) |
|
Initialization for exponential random number generator (Ziggurat method)
- Purpose
- Initializes the exponential random number generator zigexp().
- Parameters
-
[in] | n | The number of rectangles used in Ziggurat method. n = 128 or 256 can be specified. (if other value is given, 256 will be assumed) |
- Note
- init_zigexp() and init_zigexp_r() initialize the same rectangles shared by zigexp() and zigexp_r().
- Reference
- Yatsuji Tetsuaki, "Probability distribution random number generation method" 2nd ed., Pleiades Publishing, 2019. (Japanese book)
|