Comment

Comment by Syrup-tan

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.
parent Syrup-tan 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton