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:
| Name | Type | Required | Description |
|---|---|---|---|
n | Int | ✓ |
Returns: Bytes
int64(n: Int?)
Example:
rand.int64(100)
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
n | Int |
Returns: Int