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

x/netsaur/packages/utilities/src/utils/mod.ts>useRNG

Powerful machine learning, accelerated by WebGPU
Go to Latest
function useRNG
import { useRNG } from "https://deno.land/x/netsaur@0.4.0-patch/packages/utilities/src/utils/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.

Returns

number

Random number