WhatsOnTech
TRENDING
  • About Whatsontech
  • Contact Us
  • Advertise
No Result
View All Result
  • Home
  • News
  • Business
  • Gaming
  • Internet
  • Alternatives
  • Software
  • IP Address
SUBSCRIBE
  • Home
  • News
  • Business
  • Gaming
  • Internet
  • Alternatives
  • Software
  • IP Address
No Result
View All Result
WhatsOnTech
No Result
View All Result
Home Uncategorized

How Do Random Number Generators Work?

by Jenny Crimson
November 5, 2021
in Uncategorized
0
0
SHARES
49
VIEWS
Share on FacebookShare on Twitter

Random number generators play an essential function on the internet, used by banks, businesses, cryptography, online gaming, and notably by casino game studios. 

It’s extremely difficult to get a computer to generate a random number. Computers are fed by instructions, follow these (the code) blindly, and are actually highly predictable.

Trying to get a computer to do something it isn’t programmed to do is enormously complex but hugely important to the security of the internet and the applications you use every day. Confidence in the internet comes from being able to trust random number generation solutions. 

There are two types of random number generators commonly used, one that produces genuine random numbers and the second, called pseudorandom numbers. Here you will learn more about each. 

Contents

Toggle
  • Entropy
  • Pseudorandom Numbers 
  • Final thoughts

Entropy

When you log in to your online banking, for example, the randomness of the code generated is vital to prevent hackers from guessing it. Cryptography requires numbers and codes that can’t be guessed. This randomness is essential to the security of the internet.

To generate a ‘real’ random number, a computer measures a phenomenon that takes space outside the computer and the network. It searches for unpredictable data, the practice of entropy. This is based on a physical source. 

One example is key presses on your computer. The device can compile data about exactly when you press a key on your computer and use this data as a source of entropy to generate random numbers. No one could ever guess these numbers, even if they knew the source of where the number generation was coming from. 

The Linux kernel is a well-known standard for random number generation. It generates entropy from keyboard timings, mouse movements, and IDE timings and then makes the random character data available to other operating system processes through special files.

Another way a computer creates random numbers is by studying noises in the atmosphere. Entropy is the gold standard of random number generation and the one increasingly used by everyone.

The result – true random number generation (TRNG).

Pseudorandom Numbers 

This is an algorithm to generate numbers that appear random, even though they are not. They are ‘pseudorandom’.

The user sets the distribution or scope from which the random number is selected (e.g. lowest to highest), and the number is instantly presented. 

Take, for example, a list of 100 numbers. The computer would mix those numbers up and then feed them out one by one as required. The numbers appear random but are predestined as the computer makes its way down the list.

These are used as an alternative to true random numbers, and, in practice, for many things, it doesn’t matter if the number generated is genuinely random or a pseudorandom number. 

Playing video games, it’s not particularly important and isn’t going to take away your enjoyment of the game if pseudorandom generators are used to determine what happens next. 

On the other hand, you don’t want sensitive information like online banking to rely on an algorithm that a super-smart computer program could eventually decipher. 

Final thoughts

Want to get your mind even more frazzled? One can prove the lack of randomness by observing numbers that one can predict. But it’s impossible to prove randomness itself conclusively.

While using the best mathematics and entropy can make us pretty confident in the top RNGs used today, there is no way to prove for sure we are seeing a completely random number. 

Researchers have referred to this as the black hole dilemma. You cannot locate a black hole by looking at the light it emits because the very definition of a black hole is that it emits no light.

So, while we trust in and use TRNG every day and are confident enough to refer to these as real randomness, no one can prove beyond doubt that they are random results. 

ShareTweetShare

Related Posts

Why T-Shirt Printing is a Great Business Opportunity in 2025
Uncategorized

Why T-Shirt Printing is a Great Business Opportunity in 2025

October 8, 2025
Level Up Your Streams: Simple Tools to Broadcast WoW Raid Carries
Uncategorized

Level Up Your Streams: Simple Tools to Broadcast WoW Raid Carries

August 4, 2025
Beyond the Hype: Detailed Reviews Confirm Stellar Repair for Outlook’s Superior Performance
Uncategorized

Beyond the Hype: Detailed Reviews Confirm Stellar Repair for Outlook’s Superior Performance

August 1, 2025
How Bitcoin Is Driving Advances in Digital Identity and Authentication Technology
Uncategorized

How Bitcoin Is Driving Advances in Digital Identity and Authentication Technology

July 25, 2025
Understanding the IRS Mileage Rate in 2025: Tax Savings, Rules, and Exceptions
Uncategorized

Understanding the IRS Mileage Rate in 2025: Tax Savings, Rules, and Exceptions

June 27, 2025
What Makes an E2E Testing Tool Scalable for Large DevOps Teams
Uncategorized

What Makes an E2E Testing Tool Scalable for Large DevOps Teams?

June 20, 2025
Next Post
Top 7 Tips And Tricks To Get Better At Call Of Duty: Warzone

Top 7 Tips And Tricks To Get Better At Call Of Duty: Warzone

  • About Jenny
  • Meet Our Team
  • Editorial Policy
  • Terms and Conditions
  • Write For Us
No Result
View All Result
  • Home
  • News
  • Business
  • Gaming
  • Internet
  • Alternatives
  • Software
  • IP Address

© 2024 Whats On Tech - All Rights Reserved