maintainability

Avoid `Math.random()` in core code

Core code should not depend on nondeterministic random generation.

#Metadata

#Why it matters

Randomness in core logic makes behavior hard to test and reason about.

#Remediation

Pass a random source into core logic instead of calling `Math.random()` directly.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.random.no-math-random-in-core.rule.yaml.