MCPcopy Index your code
hub / github.com/CapSoftware/Cap / randomChoice

Function randomChoice

scripts/analytics/populate-test-data.js:36–38  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

34];
35
36function randomChoice(array) {
37 return array[Math.floor(Math.random() * array.length)];
38}
39
40function randomInt(min, max) {
41 return Math.floor(Math.random() * (max - min + 1)) + min;

Callers 1

generateTestEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected