The Clojure website has a cheatsheet (http://clojure.org/cheatsheet) with all the language's core functions. The first function we'll look at is rand
, a function that randomly gives you a number within a given range. So, in your edgar/
project, launch the Read-Eval-Print-Loop (REPL) with the lein repl
shell command. After a few seconds, you will be brought into a REPL. Again, Clojure functions are executed by being placed in the first position of a list. The function's arguments are placed directly afterwards as follows:
(rand 35)
, (rand 99)
, (rand 43.21)
, or any number you fancy3.138.36.38