top | item 11210622

(no title)

Syrup-tan | 10 years ago

Here's a simple modification to get the random number between 1 and 10

    [:div
     [:p "Hit Run to get a random number:"]
     [:h1 (+ 1 (Math.floor (* 10 (rand))))]]
If you weren't previously familiar with the syntax I figured this might help.

discuss

order

escherize|10 years ago

I really want to add the ability to save/load content that can be built on. I think it would be awesome to share clever tricks!

kilotaras|10 years ago

You can use (rand-int 10)