JanetDocsPlaygroundI'm feeling luckyGitHub sign in

math/random



    cfunction
    src/core/math.c on line 234, column 1

    (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