Press the space bar to roll the dice
A quick project to see if I could make a tetrahedral dice rolling app. Each face of the die is configured according to a template found on the internet. The programme randomly chooses between 1 and 12 to represent each face (1-4) and position (1-3) the die can fall at. Then the programme chooses the face and rotates it to the position that has the correct number.