MCPcopy Index your code
hub / github.com/jsfiddle/togetherjs / pick

Function pick

togetherjs/tests/interactive.js:59–64  ·  view source on GitHub ↗
(seq)

Source from the content-addressed store, hash-verified

57}
58
59function pick(seq) {
60 if (! seq) {
61 seq = peers.getAllPeers(true);
62 }
63 return seq[Math.floor(Math.random() * seq.length)];
64}
65
66addPeer();
67// => ...

Callers 1

interactive.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected