Skip to content

yummies/random

Description

Small RNG helpers for UI demos, games, and sampling: floats, integers, and random choices from arrays. They wrap Math.random (not cryptographically secure) so prefer platform crypto when generating secrets, tokens, or lottery outcomes.

Usage

ts
import { getRandomInt, getRandomChoice } from "yummies/random";

Released under the MIT License.