Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.2.1/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