Merge pull request #7 from NicMcPhee/fix-random-int-generation
Fix bug in `random-int`
This commit is contained in:
commit
f47e5e924a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user