MCPcopy Create free account
hub / github.com/6dylan6/jdm / rand

Method rand

function/common.js:228–231  ·  view source on GitHub ↗
(n, m)

Source from the content-addressed store, hash-verified

226 return path.basename(file).replace(".js", rename).replace(/-/g, '_');
227 }
228 rand(n, m) {
229 var random = Math.floor(Math.random() * (m - n + 1) + n);
230 return random;
231 }
232 random(arr, num) {
233 var temp_array = new Array();
234 for (var index in arr) {

Callers

nothing calls this directly

Calls 1

randomMethod · 0.45

Tested by

no test coverage detected