Skip to content
Get Started

Random Effect

This page is auto-generated from src/stdlib.rs. Do not edit it by hand — your changes will be overwritten on the next CI run. To add or update a built-in operation, edit the StdLib::new() registry in src/stdlib.rs.

The Random effect provides the following built-in operations, wired into the VM and runtime.

Operation Signature Description
Random.int int(lo: Int, hi: Int) -> Int Return a random integer in the inclusive range [lo, hi].

Implementation site: Standalone VM