I am very new to Clojure, so please forgive me. I have been crawling through many sites/tutorials but came up empty-handed.
I need to create random numbers and store them into a variable for multiple calculations and for different calls.
(defn position
(def x (rand-int 2147483647))
(def y (rand-int 2147483647))
(def z (rand-int 2147483647))
)
Anyone could help, please?
Aucun commentaire:
Enregistrer un commentaire