Search NASAโŒ• Search

NASA NTRS ยท 19830014813

Pseudo-random number generator for the Sigma 5 computer

Abstract

A technique is presented for developing a pseudo-random number generator based on the linear congruential form. The two numbers used for the generator are a prime number and a corresponding primitive root, where the prime is the largest prime number that can be accurately represented on a particular computer. The primitive root is selected by applying Marsaglia's lattice test. The technique presented was applied to write a random number program for the Sigma 5 computer. The new program, named S:RANDOM1, is judged to be superior to the older program named S:RANDOM. For applications requiring several independent random number generators, a table is included showing several acceptable primitive roots. The technique and programs described can be applied to any computer having word length different from that of the Sigma 5.

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Carroll, S. N.. 1983-02-01. Pseudo-random number generator for the Sigma 5 computer. https://ntrs.nasa.gov/citations/19830014813

Cite the original work for its findings. Save a collection to share your selection of sources.