function sampleimport { sample } from "https://dotland.deno.dev/std@0.181.0/collections/mod.ts"; sample<T>(array: readonly T[]): T | undefinedReturns a random element from the given array ExamplesExample 1 import { sample } from "https://deno.land/std@0.181.0/collections/sample.ts"; import { assert } from "https://deno.land/std@0.181.0/testing/asserts.ts"; const numbers = [1, 2, 3, 4]; const random = sample(numbers); assert(numbers.includes(random as number)); Type ParametersTParametersarray: readonly T[]ReturnsT | undefined