MCPcopy Create free account
hub / github.com/6dylan6/jdpro / randomNum

Method randomNum

function/magic.js:741–748  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

739 }
740
741 randomNum(length) {
742 length = length || 32;
743 let t = "0123456789", a = t.length, n = '';
744 for (let i = 0; i < length; i++) {
745 n += t.charAt(Math.floor(Math.random() * a));
746 }
747 return n
748 }
749
750 randomString(e) {
751 return this.uuid()

Callers

nothing calls this directly

Calls 1

randomMethod · 0.45

Tested by

no test coverage detected