DiceJS is a free JavaScript plugin to simulate six-sided dice in webpages. Its only dependencies are JavaScript (ES6 and later) and HTML canvases.
Check the Documentation out to learn more on how to use it.
Download DiceJS to use it in your webpage.