JavaScript Source Code 3000: Games: Dice Roller
Dice Roller
Next time you play a game involving dice, give our JavaScript Dice Roller a try! Just tell it how many dice to use, how many sides are on each die, and it'll give you the total for the number of dice you "rolled"! Slick!
What dice type?
How many dice to roll?
3 Sided
4 Sided
5 Sided
6 Sided
8 Sided
10 Sided
12 Sided
20 Sided
30 Sided
100 Sided
1
2
3
4
5
6
7
8
9
10
JavaScript Source Code 3000: Games: Dice Roller
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s). The script is yours!
<!-- TWO STEPS TO INSTALL DICE ROLLER:
1. Paste the first code into the HEAD of your HTML document -->
2. Add the last coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste the first code into the HEAD of your HTML document -->
<HEAD>
<!-- STEP TWO: Add the last coding into the BODY of your HTML document -->
<BODY>
What dice type?
How many dice to roll?
3 Sided
4 Sided
5 Sided
6 Sided
8 Sided
10 Sided
12 Sided
20 Sided
30 Sided
100 Sided
1
2
3
4
5
6
7
8
9
10
<!-- Script Size: 2.57 KB -->