🧬 A package to generate a random element from a given array (Warning: Incredibly Complex)
yarn add ts-randomize
# or
npm i ts-randomize
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` array
Issues, PRs, and contributions are always welcome! Thanks to all who do 💙
Created and maintained with ❤️ by @FilippoFonseca.