Code coverage report for koa-jade/example/lib/random.js

Statements: 66.67% (4 / 6)      Branches: 50% (2 / 4)      Functions: 100% (1 / 1)      Lines: 66.67% (4 / 6)      Ignored: none     

All files » koa-jade/example/lib/ » random.js
1 2 3 4 5 6 7 8 9 10 11 121 3 3 3                
module.exports = function (max, min) {
  Eif (!isNaN(max)) {
    Eif (!isNaN(min)) {
      return Math.round(Math.random() * (max - min) + min)
    } else {
      return Math.round(Math.random() * max)
    }
  }
 
  return max
}