Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/channel/custom/utils/utils.ts>getRandomInt

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function getRandomInt
import { getRandomInt } from "https://deno.land/x/rimbu@1.0.2/channel/custom/utils/utils.ts";

Returns a random integer between the given min and max (both inclusive).

Parameters

min: number
  • the minimum value that can be generated
max: number
  • the maximum valule that can be generated

Returns

number