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

x/dallmo_util_array/etc/deps.ts>dallmo_util_math.random_integer

deno module, a collection of array util under dallmo-util
Latest
function dallmo_util_math.random_integer
import { dallmo_util_math } from "https://deno.land/x/dallmo_util_array@v1.3.0/etc/deps.ts";
const { random_integer } = dallmo_util_math;

given 2 integers, return an random integer in between, inclusive.

Parameters

min: number
  • the minimum number
max: number
  • the maximum number

Returns

number