Choice Generator
This is a package that is mainly used for its CLI. But if you need it you can use the random choice generator funcion from the package.
Installation
To start off you want to install it, to do so run this command.
npm i -g choice-generator
or if you are using the function do it normally:
npm i choice-generator
Usage
To use this you want to run this command after installing it:
choice-generator --help
This will display the help page to use the command.
Otherwise:
choice-generator gen Hello World,How are you?,Hope you are doing fine
Or if you are using the function here is an example:
const { generate } = require('choice-generator');
let res = generate("Hello World", "How are you?");
console.log(res);