Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
var
_seed = Date.now();
8
9
export
function
srand(seed) {
10
_seed = seed;
11
}
12
13
export
function
rand(min, max) {
14
min = valueOrDefault(min, 0);
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected