Using the JSX Graph library this is plots a histogram distribution.

The following is an example of sampling the roll of a ten sided die, counting the number of 3's tossed over 50 rolls.