Tossing two dice
![]() |
If we want to represent a game of dice with two dice the first
step is to choose all elements we need from the tabs and arrange them in
an suitable way. For our experiment we need two die from the first index card. Both we have to link with the drawing element by an edge. At last we need a table from the third index card in which the result of each of the throws is shown. The picture on the right exactly shows this arrangement of elements for the experiment with an additional collector. There are two dice on top, two arrows (edges, each weighted with 1) under them, in the middle of the picture the drawing element can be seen and beneath there is the table which shows all results of the experiment. In the result table you can see, which numbers have been thrown or drawn from the urn; in this case it is 6 and 3. The column labelled with Element 1 is assigned to the die, that was first connected with the execution node. |
If you want to collect the results of each throw or drawing you have to make a slight change on the arrangement. Just add an collector to the model. The picture shows this arrangement. The collector is placed between the drawing node and the result table. Both are connected by a simple edge. The collector collects all results and indicated, which drawing is shown. In the given example the collector indicates with 1 / 3 that the result table shows the elements of the first drawing out of 3. With the help of the arrows of the collector you can switch between the particular tables. With the cross pointing to the number of the current table you can delete this table. With the double cross on the right you can delete all tables at once. |