From 20e95e7a1d3e4d159eddac8969dfab9bbb2c4d4a Mon Sep 17 00:00:00 2001 From: pyoor Date: Mon, 12 Feb 2018 13:33:54 -0500 Subject: [PATCH] Add make.number.interesting --- lib/make/numbers.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/make/numbers.js b/lib/make/numbers.js index 29ff617..3a06721 100644 --- a/lib/make/numbers.js +++ b/lib/make/numbers.js @@ -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],