Kind of a misleading animation, since n is the number of switches (4) and not the number of balls (which diverges to infinity).
Setting the bins to 500 froze the browser, unfortunately.
The physical machines that do this are undeniably cool, but especially when they have the curve painted on beforehand; this is the best I could find right now, but I remember seeing a pretty big one as part of a traveling mathematics museum exhibition: