These music boxes were probably built at the end of the 19th century. An extra feature is the panorama of the horse race in the cabinet. By inserting a coin, the music is played and one can gamble on the winning horse. The machines were designed in such a way that the winning horse could not be predicted with any certainty.
I don't know how it works, but this is maybe one of the earliest random number generator! (2/2)