JanetDocsPlaygroundI'm feeling luckyGitHub sign in

math/random



    cfunction

    (math/random)

    Returns a uniformly distributed random number between 0 and 1.


2 examplesSign in to add an example
Loading...
# Get a new and different random number each time you run your program.
(math/seedrandom (os/cryptorand 8))
(math/random)
uvtcPlayground
(math/random)  # 0.487181
btbytesPlayground