Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function randomInteger
import { randomInteger } from "https://deno.land/std@0.161.0/collections/_utils.ts";

Produces a random number between the inclusive lower and upper bounds.

Parameters

lower: number
upper: number