A test of randomness based on the distance between consecutive random number pairs

  • Authors:
  • Matthew J. Duggan;John H. Drew;Lawrence M. Leemis

  • Affiliations:
  • The College of William & Mary, Williamsburg, VA;The College of William & Mary, Williamsburg, VA;The College of William & Mary, Williamsburg, VA

  • Venue:
  • WSC '05 Proceedings of the 37th conference on Winter simulation
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

One of the most popular methods of generating "random" numbers for use in a computer program employs a Lehmer random number generator. If constructed properly, these generators will yield streams of numbers that will appear random but can also be easily replicated. However, Marsaglia (1968) discovered a potential flaw in these random number generators, namely, if consecutive n-tuples of the generated numbers are plotted in n-dimensional space, the points may fall into a small number of hyperplanes. In this paper, we compare the theoretical distribution of the distances to the actual distances produced by a specific random number generator in order to devise a statistical test of randomness for the validity of the random number generator.