returns a single value with the probability distribution of the current Ziggurat and slightly worse randomness (in the normal case uses only 32 random bits). Cannot be 0.
returns a single value with the probability distribution of the current Ziggurat
initializes the argument with the probability distribution given and returns it for arrays this might potentially be faster than a naive loop
initializes the variable with the result of mapping op on the random numbers (of type T)
initializes the ziggurat
initializes the variable with the result of mapping op on the random numbers (of type T)
ziggurat method for decreasing distributions. Marsaglia, Tsang, Journal of Statistical Software, 2000 If has negative is true the distribution is assumed to be symmetric with respect to 0, otherwise it is assumed to be from 0 to infinity. Struct based to avoid extra indirection when wrapped in a class (and it should be wrapped in a class and not used directly). Call style initialization avoided on purpose (this is a big structure, you don't want to return it)