The random number generator creates a sequence of numbers that cannot be logically predicted. One of the oldest methods of generating random numbers is to roll dice, coins, and other items. Due to the mechanical nature of these techniques, generating a large number of random numbers will be very time-consuming and costly. So sometimes a random number table is used. Today, with the advent of a large number of random number generators, a large number of random numbers can be created for bank lotteries and games, and competitions.
The production of random numbers has a variety of applications such as lottery, statistical sampling, computer simulation, cryptography, completely random design, and many other areas where the production of an unpredictable result is required. In general, security applications prefer hardware generators to random number generation algorithms. Random number generators are very useful in Monte Carlo simulations because they simplify troubleshooting.