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

random-string

Deno module to return a randomly selected string from a set of different strings in a list.

Usage

import {randomString} from https://deno.land/x/random_string@1.0/index.ts

Example

result is eigher “String_1”, “String_2” or “String_3”

a = ["Strin_1", "String_2", "String_3"]
randomString(a)