Add make.number.interesting
This commit is contained in:
parent
a6913f1905
commit
20e95e7a1d
1 changed files with 7 additions and 0 deletions
|
@ -54,6 +54,13 @@ make.number = {
|
||||||
even: function (number) {
|
even: function (number) {
|
||||||
return number % 2 === 1 ? ++number : 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 () {
|
any: function () {
|
||||||
let value = random.choose([
|
let value = random.choose([
|
||||||
[10, make.number.float],
|
[10, make.number.float],
|
||||||
|
|
Loading…
Reference in a new issue