Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/angular/angular-cli
/ random
Function
random
packages/angular_devkit/schematics/src/rules/random.ts:21–23 ·
view source on GitHub ↗
(from: number, to: number)
Source
from the content-addressed store, hash-verified
19
}
20
21
function
random(from: number, to: number) {
22
return
Math.floor(Math.random() * (to - from)) + from;
23
}
24
25
export
interface
RandomOptions {
26
root?: string;
Callers
1
random.ts
File · 0.85
Calls
1
random
Method · 0.45
Tested by
no test coverage detected