MCPcopy Index your code
hub / github.com/dataease/SQLBot / _randSelect

Method _randSelect

frontend/public/swagger-ui-bundle.js:19200–19204  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

19198 return !this.randInt(0, 1)
19199 }
19200 _randSelect(s) {
19201 return s instanceof u
19202 ? s.index(this.randInt(0, s.length - 1))
19203 : s[this.randInt(0, s.length - 1)]
19204 }
19205 _expand(s) {
19206 if (s.type === a.types.CHAR) return new u(s.value)
19207 if (s.type === a.types.RANGE) return new u(s.from, s.to)

Callers 1

_genMethod · 0.95

Calls 2

randIntMethod · 0.95
indexMethod · 0.80

Tested by

no test coverage detected