Skip to main content

randomInt()

Apps all run in a secure environment so don't have access to Math.random().

This is a utility to give you similar functionality.

import { randomInt } from "hyperfy";

const num = randomInt(0, 100);