Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/yxz/math/rand.ts>randomInt

Deno Standard Extensions
Latest
function randomInt
import { randomInt } from "https://deno.land/x/yxz@0.32.0/math/rand.ts";

Returns a random integer N such that a <= N <= b.

Parameters

a: number
b: number