MCPcopy Index your code
hub / github.com/Nuklon/Steam-Economy-Enhancer / getRandomInt

Function getRandomInt

code.user.js:545–547  ·  view source on GitHub ↗
(min, max)

Source from the content-addressed store, hash-verified

543
544 //#region Integer helpers
545 function getRandomInt(min, max) {
546 return Math.floor(Math.random() * (max - min + 1)) + min;
547 }
548
549 function getNumberOfDigits(x) {
550 return (Math.log10((x ^ x >> 31) - (x >> 31)) | 0) + 1;

Callers 3

callbackFunction · 0.85
code.user.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected