MCPcopy Create free account
hub / github.com/adobe/leonardo / getRandomInt

Function getRandomInt

docs/ui/src/js/utils.js:390–392  ·  view source on GitHub ↗
(max)

Source from the content-addressed store, hash-verified

388}
389
390function getRandomInt(max) {
391 return Math.floor(Math.random() * max);
392}
393/**
394 * Helper function to order colors
395 * by hue and lightness

Callers 1

orderColorsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected