You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
348 B

module.exports = {
// Anagrams, multiples, equality
generate: function(n) {
var values = [];
for (var i = 0; i < n; i++) {
values.push(Math.ceil(Math.random() * 1000));
}
return values;
},
validate: function(value, level) {
return ((value || -1) % (level + 2) === 0);
}
};