MCPcopy Create free account
hub / github.com/Maccoder3/MAC-MD / getRandom

Function getRandom

lib/simple.js:1820–1824  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1818}
1819
1820function getRandom() {
1821 if (Array.isArray(this) || this instanceof String)
1822 return this[Math.floor(Math.random() * this.length)]
1823 return Math.floor(Math.random() * this)
1824}
1825
1826/**
1827 * ??

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected