MCPcopy
hub / github.com/colinhacks/zod / randomPick

Function randomPick

packages/bench/benchUtil.ts:23–25  ·  view source on GitHub ↗
(options: any[])

Source from the content-addressed store, hash-verified

21}
22
23export function randomPick(options: any[]): any {
24 return options[Math.floor(Math.random() * options.length)];
25}
26
27export function makeData(count: number, factory: object | (() => any)): any[] {
28 return Array.from({ length: count }, () => {

Callers 2

jit-union.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected