Plato on Github
Report Home
core/random.js
Maintainability
131.12
Lines of code
13
Difficulty
9.55
Estimated Errors
0.06
Function weight
By Complexity
By SLOC
define('random', function() { return function(max, min) { if (max == null) { max = 1.0; } if (min == null) { min = 0.0; } return Math.floor(Math.random() * (max - min)) + min; }; });