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. For an example of an animated die roll, click here.
Graph
Totals after
0
throws:
- (not possible)
-
-
-
-
-
-
-
-
-
-
0
0
Controls
Die 1:
time(s):
0
+ Die 2: 0
=
Total: 0
time(s):
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.