]> git.scottworley.com Git - inverse-tax/commitdiff
No infinite taxation
authorScott Worley <scottworley@scottworley.com>
Thu, 23 May 2019 21:36:34 +0000 (14:36 -0700)
committerScott Worley <scottworley@scottworley.com>
Thu, 23 May 2019 21:36:34 +0000 (14:36 -0700)
tax.test.js

index b4959184215ac9b7a7c27c1a4a18f1216b5c5a3f..14c48c04481eddd4bb8c30809412d62ae1fdeda5 100644 (file)
@@ -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);
 }