MCPcopy Create free account
hub / github.com/activejs/activejs / randomNumber

Function randomNumber

packages/core/src/tests/utils.ts:162–164  ·  view source on GitHub ↗
(min?: number, max?: number)

Source from the content-addressed store, hash-verified

160}
161
162export function randomNumber(min?: number, max?: number): number {
163 return Faker.random.number({min, max});
164}
165
166export function randomString(): string {
167 return selectRandom([Faker.random.words, Faker.random.word, Faker.random.alphaNumeric])();

Callers 15

units.spec.tsFile · 0.90
dict-unit.spec.tsFile · 0.90
list-unit.spec.tsFile · 0.90
num-unit.spec.tsFile · 0.90
utils.tsFile · 0.85
numberOrRandomValueFunction · 0.85
randomArrayFunction · 0.85
selectRandomFunction · 0.85
randomSelectMultipleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected