Pseudo Random Number Generator


Generates a set of pseudo random numbers within a predefined range. Enter the number of random values and the minimum and maximum values for the range of random numbers you want to generate. The precision defines the number of digits after the decimal point. In case the precision equals to 0 a set of integer pseudo random numbers is generated. You can also choose comma or space as separators between the generated numbers.


Precision: decimal places

Number of values:
Minimal value:
Maximal value:

Separator: Comma   Space
 

Random Values


Generation of pseudo random numbers

Random number generators have numerous applications in various fields like gambling, computer simulation, statistical sampling, cryptography and other areas where producing unpredictable numeric values is crucial. To generate a sequence of true random numbers is a complex problem and hardware generators are used for this. A pseudo random number generator (PRNG) is a computer algorithm for generating a sequence of numbers whose properties can only approximate the properties of sequence of truly random numbers, because it’s completely determined by an initial value. Statistical quality of pseudo random numbers are generally sufficient for most of practical applications (but not in the case of cryptography!).

By far the most widely used PRNG is the Mersenne Twister algorithm which passed numerous tests for statistical randomness and generally creates random numbers faster than other methods. The Mersenne Twister is a strong pseudo-random number generator in terms of that it has a long period (the length of sequence of random values it generates before repeating itself) and a statistically uniform distribution of values. A version of this algorithm, MT19937, has an impressive period of 2¹⁹⁹³⁷-1. In view that the Mersenne Twister PRNG provides long period, high order of dimensional equidistribution, good speed and reliability it is used within many software applications and packages, including PHP and Python.

Our PRNG is based on Chance.js – a popular open source (MIT License) random generator helper for JavaScript, built on top of the Mersenne Twister algorithm.


Related calculators

Check out our other statistics calculators such as Number Sorter or Odds To Probability Calculator.