ts-randomize
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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-randomize

Usage

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

Contributing

Issues, PRs, and contributions are always welcome! Thanks to all who do 💙

Created and maintained with ❤️ by @FilippoFonseca.

/ts-randomize/

    Package Sidebar

    Install

    npm i ts-randomize

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.63 kB

    Total Files

    7

    Last publish

    Collaborators

    • filippofonseca