Date: Thu, 28 Mar 2024 18:44:30 +0000 (UTC) Message-ID: <512884359.71.1711651470928@a1421a906dc5> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_70_972797201.1711651470928" ------=_Part_70_972797201.1711651470928 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The random library provides a few convenience functions to gener= ate random content
word
Returns a random word using node random-words pack= age. Note that random-words parameters are not supported in KRL.
s= tr =3D random:word()
uuid
Generates a UUID using node cuid package.
s= tr =3D random:uuid()
integer
Returns a random integer between lower
and <=
code>upper (inclusive) using Lodash's random. The range bounds can be equal or in any order.
n= =3D random:integer(upper =3D 2, lower =3D 0) a =3D random:integer(5) //returns random integer where 0 <=3D a <=3D = 5
Because upper
is the first argument, you can call=
this function with a single argument to get a random integer between =
0
and that number.
number
Returns a random number (float) between lower
and=
upper
(inclusive) using Lodash's random. The range bounds can be equal or in any order.
n= =3D random:number(lower =3D 0, upper =3D 1)