This site works best with JavaScript enabled!

Description: Random Generator - Random Number

Random Generator Number

In this article the algorithm of the generator "Random Number" is described. The random generator generates an arbitrary random number. If you have more options and you just can not decide, this page will definitely help you.

Random generator "Random Number"

Click here to go to the random generator described below.

What is randomness?

Randomness is an event for which there is no causal explanation. This means that the result of a random generator may not be predictable or computable. This, however, contradicts the laws of each computer. In other words, a computer can not produce absolutely random numbers without additional peripherals. In this case we call it pseudo-random numbers. In general, you can philosophize about at which point you can actually speak about randomness.

How are the random numbers generated?

Theoretically, three different mechanisms for generating pseudo-random numbers are used in this generator, but two of them are only used to generate the binary string in the background.

Random generator 1 and 2 for binary string

How these random generators work, is explained here in detail.

Random generator 3 for random number

The previous random number generators produce relatively good random numbers, which, however, can further be improved. The random answer is therefore always generated on server-side with the PHP function random_int(), which generates cryptographically secure pseudo-random numbers:

$random_anwser = random_int(NUMBER_MIN, NUMBER_MAX);
Share this page
Posted on 14.12.2016 | Last modified on 16.01.2018