MCPcopy
hub / github.com/mdn/web-components-examples / random

Function random

life-cycle-callbacks/main.js:61–63  ·  view source on GitHub ↗
(min, max)

Source from the content-addressed store, hash-verified

59remove.disabled = true;
60
61function random(min, max) {
62 return Math.floor(Math.random() * (max - min + 1) + min);
63}
64
65add.onclick = function () {
66 // Create a custom square element

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected