MCPcopy Create free account
hub / github.com/ACM-VIT/conclave / pick

Function pick

scripts/loadtest/loadtest.mjs:75–75  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

73const INITIALS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
74
75const pick = (arr) => arr[Math.floor(Math.random() * arr.length)];
76
77const randomName = () => {
78 const first = pick(FIRST_NAMES);

Callers 1

randomNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected