This is a model of two dice being rolled - the totals are counted and displayed in the graph. It shows how you can change the height or width properties of an image to create things such as bar charts.
Graph
Instructions
This page uses HTML and JavaScript to simulate the rolling of two dice.
You can throw the dice by clicking the Go! button, and the distribution of results will be shown in the graph. To speed things up, you can throw the dice several times in one "go" by entering the required number of throws into the field next to the button.
The graph will adjust automatically to fit your screen. If you change the size of the window, clicking the Go! button will also resize the graph to fit.
Note that you may experience problems with this page in browsers other than Internet Explorer, as some do not allow images to be resized (so the graph cannot be updated).