Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

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:number(lower = 0, upper = 1)
  • No labels