Skip to main content

rand

Package rand provides cryptographically secure random value generation for durable programs.

rand

Functions

bytes(length: Int)

Example:

rand.bytes(16)

Parameters:

NameTypeRequiredDescription
lengthInt

Returns: Bytes


int64(max: Int)

Example:

rand.int64(100)

Parameters:

NameTypeRequiredDescription
maxInt

Returns: Int


text()

Example:

rand.text()

Returns: String