src/luckio.js
function luckio(chance) {
  var min = 1;
  var max = math.maxRange(chance);
  var luckyNumber = math.randomNumber(min, max);

  return function() {
    if (math.randomNumber(min, max) === luckyNumber) return true;
    return false;
  }
}
function luckio(chance) {
  var min = 1;
  var max = math.maxRange(chance);
  var luckyNumber = math.randomNumber(min, max);

  return function() {
    if (math.randomNumber(min, max) === luckyNumber) return true;
    return false;
  }
}
function luckio ( chance ) { var min = 1 ; var max = math . maxRange ( chance ) ; var luckyNumber = math . randomNumber ( min , max ) ; return function ( ) { if ( math . randomNumber ( min , max ) === luckyNumber ) return true ; return false ; } }
Pick a lucky number and return a function that matches its picked lucky number
to the initial one. If equal it will return `true`, if not `false`.

@param {Number} chance Lucky chance to pick a number
@returns {Function}
Pick a lucky number and return a function that matches its picked lucky number to the initial one . If equal it will return true if not false .