ts-randomize
v1.0.1
Published
🧬 A package to generate a random element from a given array (Warning: Incredibly Complex)
Readme
ts-randomize
🧬 A package to generate a random element from a given array (Warning: Incredibly Complex)
Installation
yarn add ts-randomize
# or
npm i ts-randomizeUsage
import { random } from "ts-randomize";
const data = ["This is an element", "Another element", ...etc];
const myVar = random(data);
console.log(myVar); // will output a random value from the `data` arrayContributing
Issues, PRs, and contributions are always welcome! Thanks to all who do 💙
Created and maintained with ❤️ by @FilippoFonseca.
