Add make.number.interesting

This commit is contained in:
pyoor 2018-02-12 13:33:54 -05:00
parent a6913f1905
commit 20e95e7a1d

View file

@ -54,6 +54,13 @@ make.number = {
even: function (number) {
return number % 2 === 1 ? ++number : number
},
interesting: function () {
return random.choose([
[10, [-128, -1, 0, 1, 16, 32, 64, 100, 127]],
[7, [-32768, -129, 128, 255, 256, 512, 1000, 1024, 4096, 32767]],
[1, [-2147483648, -100663046, -32769, 32768, 65535, 65536, 100663045, 2147483647]]
])
},
any: function () {
let value = random.choose([
[10, make.number.float],