Skip to main content
Module

x/random_primes/deps.ts>randomBigIntRange

Generate random prime numbers with Deno and the Miller-Rabin test.
Latest
function randomBigIntRange
import { randomBigIntRange } from "https://deno.land/x/random_primes@v1.3/deps.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