MCPcopy Create free account
hub / github.com/hashintel/hash / randInt

Function randInt

apps/hash-api/src/seed-data/seed-crm-data.ts:161–161  ·  view source on GitHub ↗
(min: number, max: number)

Source from the content-addressed store, hash-verified

159faker.seed(config.seed);
160
161const randInt = (min: number, max: number) => faker.number.int({ min, max });
162const pick = <T>(arr: readonly T[]): T => faker.helpers.arrayElement(arr);
163/** Picks `min`–`max` distinct elements from `arr`. */
164const pickSome = <T>(arr: readonly T[], min: number, max: number): T[] =>

Callers 5

seedCrmDataFunction · 0.85
accountPropsFunction · 0.85
productLineItemFunction · 0.85
dealPropsFunction · 0.85
activitySubtypePropsFunction · 0.85

Calls 1

intMethod · 0.80

Tested by

no test coverage detected