Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dallmo_util_array/mod.ts>random_item

deno module, a collection of array util under dallmo-util
Latest
function random_item
import { random_item } from "https://deno.land/x/dallmo_util_array@v1.3.0/mod.ts";

draw an item from an array randomly

Parameters

input_array: any[]
  • the input array

Returns

any

return one of the item inside the given array