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

Function rand

docs/scripts/utils.js:13–18  ·  view source on GitHub ↗
(min, max)

Source from the content-addressed store, hash-verified

11}
12
13export function rand(min, max) {
14 min = valueOrDefault(min, 0);
15 max = valueOrDefault(max, 0);
16 _seed = (_seed * 9301 + 49297) % 233280;
17 return min + (_seed / 233280) * (max - min);
18}
19
20export function numbers(config) {
21 var cfg = config || {};

Callers

nothing calls this directly

Calls 1

valueOrDefaultFunction · 0.85

Tested by

no test coverage detected