Short random number generator subroutine suitable for programmable

A aeven line Fortran program has been developed for the generation of random numbers. The program is unique in as much a~ it does not depend upon the ...
0 downloads 0 Views 204KB Size
Short Random Number Generator Subroutine Suitable for Programmable Calculators, Fortran, or Basic A aeven line Fortran program has been developed for the generation of random numbers. The program is unique in as much a~ it does not depend upon the format ability of Fortran for its success. Thus it can be successfully used with a programmable cdculstor where it occupies about 20 memory steps or three branch points, a space which represents only a few percent of the total memory usually eveilable. The program generates numbers which do not recycle, which are odd and even, and which contain any number of desired digits. A 10% probability for finding any number from 0 to 9 exists in the units place, the tens place, etc., of the numbers generated. Thus the numbers hppear to be random although strictly speaking they are not. A copy of the program may he obtained in Fortran, Basic, and in a form for input into a programmable calculator by sending a stamped, self-addressed envelope to the author. RONALD DELORENZO MIDDLEGEORGIA COLLEGE 31014 COCERAN, GEORGIA

Volume 49, Number 2, February 1972

/

1 13