Random number generators (RNG’s) are often used in cryptology where random numbers are used to generate difficult to predict keys which are used to unlock coded messages. An interesting application of random number generators is in the online casino and poker industry. Since its the online poker and casino industry has relied severely on random number generators to cater statistically random outcomes to a wide range of casino games such as blackjack, poker and of course slots. at the start the industry relied heavily on cumbersome Geiger Muller RNG’s but as gambling technology highly-developed farther so did the type of RNG’s used. Today’s online casinos and poker rooms rely entirely on pseudo random number generators with what is known as the “seed number” generated by a separate process used in the online poker software.

So now you do not actually need to marvel how online poker sites reach totally unpredictable and random results 24/7 because the answer is in our random number generators (RNGs). You do not need to rack your brain to figure out who or what determines whether a King of Hearts or a two of spades will be dealt out next in a poker game – it’s the thingy that our poker software developers term as random number generators, abbreviated as RNGs! In simple terms RNGs is a system for generating a completely random (lacking any pattern, unconnected and unpredictable) series of numbers. It is absolutely not an easy thing to achieve 100% random results using man-made codes to work on computers but the RNGs deployed by all the online poker rooms that we build do just that.

Let me show you how cards are presented, as a side note. Cards are represented as a long 64 bit representation. A value of “70370896904320” stands for bit pattern “10000000000000010000000010100000000000010000000” which literally represents 5 cards (note the 5 set bits and their position) of value 9C 9D JD 7H 9S. The cards value is normally accompanied by a count or another long for visibility. A set bit for a card in the visibility filed means that the card is an open card. Sometimes a “card count” field is also present for example in participant hand. This is there because the actual player card cannot be broadcasted to all players and are zeroed out. The client needs to know how many closed cards need to be displayed and this is the field which provides that value.

Getting back to random number generators, as recently as 100 years ago, people who needed random numbers for scientific work until now tossed coins, rolled dice, dealt cards, picked numbers out of hats or baskets, or browsed census records for lists of digits. True random numbers are typically generated by sampling and processing a source of entropy outside the computer. A source of entropy can be very simple, like the little variations in somebody’s mouse movements or in the amount of time between keystrokes on your keyboard. In practice, however, it can be slick to use any user input as a source of entropy. Keystrokes, for example, are often buffered by the computer’s operating system, meaning that several keystrokes are gathered before they are sent to the programme waiting for them. To the program, it will seem as though the keys were pressed almost simultaneously. Most poker sites use hardware random number generators. They will also modify the output to remove any scaling bias and often use ‘pots’ of numbers which can be ’stirred up’ using entropic events (user activity, server i/o events etc). Quite often the consequent numbers just index pre-generated decks (starting off as a grouped list of cards).

Even casino slot machines generate random numbers continuously at very high speed and use the most recent result(s) when the user pulls the lever (or hits the button) to spin the reels. Thus, even a simplistic generator can be used. Even if you knew the algorithm used, you cannot observe where in the sequence it is because nearly all the results are discarded. If somehow you did know where it was in the sequence, you’d have to have millisecond or better timing to take advantage of it. sophisticated “mechanical reel” machines use PRNGs and drive the reels with stepper motors to imitate the old style spin-and-brake.

To get a permit to operate a gaming site in a particular jurisdiction usually requires that the random number generator (RNG) has been certified by an independent third-party. The third-party testers will analyse the source code and run statistical tests to envision that the RNG behaves indiscriminately. Reputable poker sites will usually include details of the certification that their Random Number Generator (RNG) has undergone.