the code on the website is javascript here it is, make sure to create dice images for it to work (e.g dice1.png):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dice Roller</title>
<style>
body {
font-family: Arial, sans-serif;
}
#result-frame {
margin-top: 20px;
}
</style>
</head>
<body>
<h2>Dice Roller</h2>
<label for="num-dice">Choose Number of Dice:</label><br><br>
<select id="num-dice">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
<button onclick="rollDice()">Roll</button>
<div id="result-frame"></div>
<script>
function rollDice() {
var numDice = parseInt(document.getElementById('num-dice').value);
var resultFrame = document.getElementById('result-fr