Bean Machine

Bean Machine Simulation (a.k.a. Plinko or binomial distribution)

You are now following this Submission

Also known as Plinko, this script simulates balls bouncing left and right, with equal probability, as they travel downwards. At the bottom, they are collected into bins with the bar chart illustrating the number of balls in a particular bin.

This is a fun example of the binomial distribution, which can clearly be seen forming in the bar chart.

Cite As

Michael (2026). Bean Machine (https://se.mathworks.com/matlabcentral/fileexchange/32420-bean-machine), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0