MCPcopy 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
21function random(from: number, to: number) {
22 return Math.floor(Math.random() * (to - from)) + from;
23}
24
25export interface RandomOptions {
26 root?: string;

Callers 1

random.tsFile · 0.85

Calls 1

randomMethod · 0.45

Tested by

no test coverage detected