A random number generator (RNG) is computer software or hardware which cycles through numbers in a specific range, and a rate of a millions of numbers per second. When the deal button on a video poker game is hit, the RNG stops at whichever number it’s on, and deals a card corresponding to the one of the cards remaining in the virtual deck.