RANDU

RANDU

RANDU is an infamous linear congruential pseudorandom number generator which has been used since the 1960s. It is defined by the recurrence:

:V_{j+1} equiv (65539 V_j) mod 2^{31},with V_0 odd.

Pseudo-random numbers are calculated as::X_{j} equiv V_{j} / 2^{31},

It is widely considered to be one of the most ill-conceived random number generators designed. Notably, it fails the spectral test badly for dimensions greater than 2.

The reason for choosing these particular values is that with a 32 bit integer word size the arithmetic of mod 2^{31} and 65539=2^{16}+3 calculations could be done quickly. To show the problem with these values consider the following calculation where every term should be taken mod 2^{31}, we start by writing the recursive relation as:

:x_{k+2}=(2^{16}+3) x_{k+1}=(2^{16}+3 )^2 x_{k},

which becomes, after expanding the quadratic factor:

:x_{k+2}=(2^{32}+6 cdot2^{16} +9 )x_{k}= [6 cdot (2^{16}+3)-9] x_{k},

and allows us to show the enormous correlation between three points as:

:x_{k+2}=6x_{k+1}-9x_{k},

As a result of this correlation the points in three dimensional space (mod 2^{31}) fall in a comparatively small number of planes, 15 to be exact (see Marsaglia's paper). As a result of the wide use of RANDU in the early 70's many results from that time are seen as suspicious.Fact|date=November 2007

ample output

The start and end of RANDU’s output (when started with a seed of 1):

1 65539 393225 1769499 7077969 26542323 95552217 334432395 1146624417 1722371299 14608041 ... 134633675 1893599841 1559961379 907304297 2141591611 388843697 238606867 79531577 477211307 1

Quotes

:"...its very name RANDU is enough to bring dismay into the eyes and stomachs of many computer scientists!" —Donald Knuth

:" One of us recalls producing a “random” plot with only 11 planes, and being told by his computer center’s programming consultant that he had misused the random number generator: “We guarantee that each number is random individually, but we don’t guarantee that more than one of them is random.” Figure that out." —Press, William H., et al. (1992).

References

* Donald E. Knuth, "The Art of Computer Programming, Volume 2", 3rd edition (Addison-Wesley, Boston, 1998).
* Marsaglia, George (1968), "Random Numbers Fall Mainly in the Planes," "Proc National Academy of Sciences" 61, 25-28.
* Press, William H., et al. (1992). "Numerical Recipes in Fortran 77: The Art of Scientific Computing", 2nd edition. ISBN 0-521-43064-X.


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • RANDU — est le nom d un générateur congruentiel linéaire introduit dans les années 1960, sur des machines IBM System/370 ou d’autres machines 32 bits. Il est très impopulaire car il possède de nombreux biais auxquels ont dû faire face les personnes qui l …   Wikipédia en Français

  • RANDU — Распределение в трёхмерном пространстве 100 000 точек, полученных алгоритмом RANDU. Можно видеть, что точки расположены на 15 плоскостях. RANDU  печально известный линейный конгруэнтный генератор псевдослучайных чисел, в …   Википедия

  • Randu — Original name in latin Randu Name in other language Randu State code ID Continent/City Asia/Jakarta longitude 8.1197 latitude 111.7935 altitude 96 Population 0 Date 2012 06 07 …   Cities with a population over 1000 database

  • randu — raita   …   Suomen slangisanakirjaa

  • Holiday House Randu Pļavas — (Салацгрива,Латвия) Категория отеля: Адрес: Pērnavas iela 33d, Салацгрив …   Каталог отелей

  • randuiti — ×randùiti, ùja, ùjo žr. randavoti 1: Šitie gaspadoriai, katarie randùjo žemę nuo grafo, tai ėmė parabkų slūžytie Aps …   Dictionary of the Lithuanian Language

  • Spektraltest — Der Spektraltest ist eine Methode, mit der überprüft werden kann, ob gegebene Zufallszahlen tatsächlich stochastisch voneinander unabhängig sind, oder ob das Gegenteil der Fall ist, d. h. bereits „gewürfelte“ Werte die folgenden Werte… …   Deutsch Wikipedia

  • Kassandra — Este artículo o sección necesita una revisión de ortografía y gramática. Puedes colaborar editándolo (lee aquí sugerencias para mejorar tu ortografía). Cuando se haya corregido, borra este aviso por favor …   Wikipedia Español

  • rasti — 1 ràsti, rañda, rãdo tr. 1. SD172, H, R, K ieškant aptikti, užeiti ką pamestą, paslėptą, paliktą: Paveizdėk, ir rasì Grv. Dabar eisme pažiūrėt, gal da ràsme Erž. Ilgai anie ieškojo jo ir visa negalėjo ràsti Lz. Kur anlįs, ir ràst negalėsi… …   Dictionary of the Lithuanian Language

  • randas — 1 randas sm. (3) 1. SD39,365, Q455, H, R, M2354, Sut, K, M, DŽ užgijusios žaizdos žymė, retys: Ant kaktos randas nuo įspyrimo kumelio J. Randas paliko, kai išgijo, kur buvo įkirsta Kp. Jeigu ir nugydysi, bus randas Pc. Jis pargrįžta iš karo… …   Dictionary of the Lithuanian Language

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”