Merge pull request #7 from NicMcPhee/fix-random-int-generation

Fix bug in `random-int`
This commit is contained in:
Lee Spector 2020-11-10 21:06:22 -05:00 committed by GitHub
commit f47e5e924a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@
(defn random-float [] (- (* (rand) 200) 100.0))
; Random integer between -100 and 100
(defn random-int [] (- (rand-int 201) 100.0))
(defn random-int [] (- (rand-int 201) 100))
(def instructions
(utils/not-lazy

View File

@ -38,7 +38,7 @@
;; =============================================================================
; Random integer between -100 and 100
(defn random-int [] (- (rand-int 201) 100.0))
(defn random-int [] (- (rand-int 201) 100))
(def instructions
(utils/not-lazy