Skip to main content

rand

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

load("rand", ...)

rand

load("rand", "rand")

Functions

bytes(n: Int)

Example:

rand.bytes(16)

Parameters:

NameTypeRequiredDescription
nInt

Returns: Bytes


int64(n: Int?)

Example:

rand.int64(100)

Parameters:

NameTypeRequiredDescription
nInt

Returns: Int