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

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

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
function useRNG
import { useRNG } from "https://deno.land/x/netsaur@0.4.2/packages/utilities/src/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