From: Scott Worley Date: Thu, 23 May 2019 21:36:34 +0000 (-0700) Subject: No infinite taxation X-Git-Tag: v1.0~14 X-Git-Url: http://git.scottworley.com/inverse-tax/commitdiff_plain/82b7a49862ffba0bcd9e6b5500b4ed2e901444e8?ds=sidebyside No infinite taxation --- diff --git a/tax.test.js b/tax.test.js index b495918..14c48c0 100644 --- a/tax.test.js +++ b/tax.test.js @@ -10,7 +10,7 @@ function near(a, b, epsilon = 1e-6) { return Math.abs(a - b) < epsilon; } -function rand(limit = 100) { +function rand(limit = 99) { return Math.round(Math.random() * limit); }