Algorithm Used by the LabVIEW Random Number (0 - 1) Function

Updated Jul 15, 2019

Reported In


  • LabVIEW

Issue Details

What is the algorithm used by the LabVIEW Random Number (0 - 1) function, and what is its period?


The LabVIEW Random Number (0 - 1) function produces numbers seeded by the system clock, rectangularly (evenly) distributed between 0 and 1, excluding the end points. The algorithm is based on the use of multiple multiplicative congruential generators. This implementation improves the frequency of occurrence of values towards the extremes of the distribution. It has a periodicity of 6.95 * 10^12 random numbers before the cycle repeats. 

A detailed explanation of the algorithm can be found in "An Efficient and Portable Pseudo-random number generator", Applied Statistics 31 (1982), 188-190 by B.A. Wichmann and I.D. Hill.