Haven’t used clojure in a while would appreciate some help
I tried doing
(defn num [] (rand-int 2) (rand-int 2))
Haven’t used clojure in a while would appreciate some help
I tried doing
(defn num [] (rand-int 2) (rand-int 2))
(defn randints [] [(rand-int 2) (rand-int 2)])
if you meant random integers between 0 and 1. Or
(defn randfloats [] [(rand) (rand)])
if you meant random floating point numbers between 0 and 1.