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

x/denouse/use/random/mod.ts>useRNG

Util functions for Deno
Go to Latest
function useRNG
import { useRNG } from "https://deno.land/x/denouse@v0.0.6/use/random/mod.ts";

Get random number from range

Parameters

min: number

Min value of range.

max: number

Max value of range.

optional
allowDecimals = [UNSUPPORTED]

Whether to allow decimal point in result.