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

x/revoltio/deps.ts>Collection#random

No-nonsense Revolt library for nodejs and deno.
Latest
method Collection.prototype.random
import { Collection } from "https://deno.land/x/revoltio@v1.0.0/deps.ts";

Obtains unique random value(s) from this collection.

Returns

V | undefined

A single value if no amount is provided or an array of values

Parameters

amount: number