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

x/docker_names/rand.ts>pickRandomElement

Moby's name generation now in Deno!
Latest
function pickRandomElement
import { pickRandomElement } from "https://deno.land/x/docker_names@v1.1.0/rand.ts";

Picks a random object from an array

Parameters

arr: Array<T>

The array from which the element will be picked