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

x/random_bigint/src/randomBigInt.ts>randomBigIntRange

Generate a random BigInt by bit-length with Deno.
Latest
function randomBigIntRange
import { randomBigIntRange } from "https://deno.land/x/random_bigint@v1.5/src/randomBigInt.ts";

Generate a random bigint from within a provided range such that min < random < max

Parameters

min: bigint

the minimum integer in the range

max: bigint

the maximum integer in the range

Returns

bigint