Meet the Electro Dice Machine: an electromechanical dice that gives you a two new pairs at the push of a lever. It has two lights underneath that spin at a high speed to give you random numbers. As you can see in the video, this toy can be a bit noisy.
The Electro Dice Machine started selling in the 1970s. It is pretty rare but shows up on eBay regularly.