#
Ziggurat algorithm
^{en}

The ziggurat algorithm is an algorithm for pseudo-random number sampling. Belonging to the class of rejection sampling algorithms, it relies on an underlying source of uniformly-distributed random numbers, typically from a pseudo-random number generator, as well as precomputed tables. The algorithm is used to generate values from a monotone decreasing probability distribution. It can also be applied to symmetric unimodal distributions, such as the normal distribution, by choosing a value from one half of the distribution and then randomly choosing which half the value is considered to have been drawn from. It was developed by George Marsaglia and others in the 1960s. A typical value produced by the algorithm only requires the generation of one random floating-point value and one random table index, followed by one table lookup, one multiply operation and one comparison. Sometimes more computations are required. Nevertheless, the algorithm is computationally much faster than the two most commonly used methods of generating normally distributed random numbers, the Marsaglia polar method and the Box–Muller transform, which require at least one logarithm and one square root calculation for each pair of generated values. However, since the ziggurat algorithm is more complex to implement it is best used when large quantities of random numbers are required. Wikipedia [ - ]

# Freebase Commons Metaweb System Types /type

- -

- Ziggurat algorithm

- /wikipedia/en_id/7093060
- /wikipedia/en/Ziggurat_algorithm
- /en/ziggurat_algorithm
- /wikipedia/fr/M$00E9thode_Ziggourat
- /wikipedia/fr_id/1992202
- /wikipedia/fr_title/M$00E9thode_Ziggourat
- /wikipedia/en_title/Ziggurat_algorithm
- /wikipedia/he_title/$05E9$05D9$05D8$05EA_$05D6$05D9$05D2$05D5$05E8$05D8
- /wikipedia/fr/Methode_Ziggourat
- /wikipedia/he_id/914950
- /wikipedia/he/$05E9$05D9$05D8$05EA_$05D6$05D9$05D2$05D5$05E8$05D8

- -