Drag the mouse to draw the desired distribution function. Random numbers following this distribution will be generated.

Show/hide code - distribution.js

This project was prompted by this tweet: