MCPcopy Create free account
hub / github.com/chartjs/Chart.js / srand

Function srand

docs/scripts/utils.js:9–11  ·  view source on GitHub ↗
(seed)

Source from the content-addressed store, hash-verified

7var _seed = Date.now();
8
9export function srand(seed) {
10 _seed = seed;
11}
12
13export function rand(min, max) {
14 min = valueOrDefault(min, 0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected