Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denouse/mod.ts>useRNG

Util functions for Deno
Go to Latest
function useRNG
import { useRNG } from "https://deno.land/x/denouse@v0.0.6/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.