Skip to main content
Module

x/random_item/mod.ts

🎁 Get a random item from an array
Latest
import * as randomItem from "https://deno.land/x/random_item@v1.2.0/mod.ts";

Functions

Get a random item from an array.

Get multiple random items from an array. This is the equivalent of calling randomItem() multiple times so the returned array may contain duplicates.