The random library provides a few convenience functions to generate random content
word
Returns a random word using node random-words package. Note that random-words parameters are not supported in KRL.
str = random:word()
uuid
Generates a UUID using node cuid package.
str = random:uuid()
integer
Returns a random integer between lower
and upper
(inclusive) using Lodash's random.
n = random:integer(lower = 0, upper = 1)
number
Returns a random number (float) between lower
and upper
(inclusive) using Lodash's random.
n = random:integer(lower = 0, upper = 1)