Skip to main content
Log in

A fast random number generator with good statistical properties

Ein rascher Zufallszahlengenerator mit guten statistischen Eigenschaften

  • Published:
Computing Aims and scope Submit manuscript

Summary

Recently,P. A. Lewis, A. S. Goodman, andJ. M. Miller carried out extensive statistical tests on a random number generator of congruential type [3]. They showed that this generator has good statistical properties. Based on a careful analysis of the number theoretical properties of a class of generators, of which the above is a member, we have significantly increased its speed. For example, on the IBM 360/67 the time per calculation of one random number has been reduced from 14.25 μs to 9.25 μs and on the IBM 360/91 from 3.25 μs to 1.3 μs. The modified generator owes its increased speed to a replacement of a division operation by an addition and two shift instructions and the removal of a subsequent overflow test.

Zusammenfassung

P. A. Lewis, A. S. Goodman undJ. M. Miller unternahmen vor kurzem ausführliche Untersuchungen einer kongruentiellen Methode zur Erzeugung von Zufallszahlen mittels statistischer Prüfverfahren [3]. Sie wiesen nach, daß die durch diese Rekursionsformel gelieferten Zahlen gute statistische Eigenschaften haben. Aufgrund einer in der vorliegenden Arbeit beschriebenen sorgfältigen Untersuchung der zahlentheoretischen Eigenschaften einer Klasse von Erzeugungsmethoden, zu denen die oben erwähnte Methode gehört, konnten wir die Herstellung der Zufallszahlen wesentlich beschleunigen. Zum Beispiel konnten wir die zur Berechnung einer Zahl benötigte Zeit auf der IBM 360/67 von 14.25 μs auf 9,25 μs und auf der IBM 360/91 von 3,25 μs auf 1,3 μs vermindern. Die erhöhte Geschwindigkeit ist der Ersetzung eines Divisionsbefehls durch zwei Verschiebungs- und einen Additionsbefehl und der Einsparung eines anschließenden Überflußprüfbefehls zu verdanken.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Similar content being viewed by others

References

  1. Lehmer, D. H.: Mathematical Methods in Large-Scale Computing Units. Proc. Sec. Symp. on Large-Scale Digital Calculating Machinery, pp. 141–146. Cambridge, Mass. 1951.

  2. Liniger, W.: On a method byD. H. Lehmer for the generation of pseudorandom numbers. Num. Math.3, 265–270 (1961).

    Google Scholar 

  3. Lewis, P. A., A. S. Goodman, andJ. M. Miller: A pseudo-random number generator for the System/360, IBM Syst. J.8, 136–146 (1969).

    Google Scholar 

  4. Payne, W. H., J. R. Rabûng, andT. B. Bogyo: Coding theLehmer pseudorandom number generator. Comm. ACM12, 85–86 (1969).

    Google Scholar 

  5. Downham, D. Y., andF. D. K. Roberts: Multiplicative congruential pseudorandom number generators. Comp. J.10, 74–77 (1967).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Gustavson, F.G., Liniger, W. A fast random number generator with good statistical properties. Computing 6, 221–226 (1970). https://doi.org/10.1007/BF02238807

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF02238807

Keywords

Navigation