Jump to content

Ziggurat algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Romanski (talk | contribs) at 14:28, 21 September 2006 (created). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

The ziggurat algorithm is an algorithm which generates normally-distributed pseudo-random numbers. The algorithm is considerably faster than the more commonly used Box-Muller transform, since the latter must discard on average more than 20% of the values it generated and calculate logaritms. The ziggurat algorithm on the other hand can generate normally-distributed random numbers as fast as uniformly-distributed ones.

The ziggurat algorithm is named after ziggurats because the basis of the algorithm is a step function which resembles a ziggurat.

See also

References