A random number generator is a computer algorithm contained on a microchip inside a slot machine or video poker or keno machine. It has the simple function of generating a number between 0 and about 4 billion (4,000,000,000). It does this continuously, hundreds of times a second.