RandIt is a npm package that is full of randomizing things. For now it only has few things. But I'm working on adding more. Go to All Variables to see how you can use this package and what its uses are.
Okay so you wanna get started! So there are some easy steps to get started. First you should require the package;
const r = ;
Then, you are free to use any of our variables! For example:
const r = ;console;
This will pick a random number from 1-200000. You could replace 1, 200000 with 2401, 69134 or anything!
r.aan(): Picks a random name like
r.n(string, string1);: Picks random from 2 strings.
r.n(1, 100); will pick a number 1-100
r.j(): Gives a random joke! Jokes are still being added as there are few jokes.
r.tN(): It will pick a number from 10000-99999 for thinks like links like bit.ly/18231, etc.
r.in(20);: It test for a number. If it is a number it will say true;if it is not a number it will say false.
In this instance it will say true.
r.ask(string): It's basically an 8 ball and will output a yes or no answer. It has to be a yes or no question.