A Galton board, or quincunx, is a probability machine used to demonstrate normal distribution, which is the bell-shaped curve that you will see. The lower stacks are the least commonly landed on, while the higher stacks are more frequently landed on.
Code by me. Original idea by Sir Francis Galton. For more information, visit https://en.m.wikipedia.org/wiki/Bean_machine