1.2.4 • Published 6 years ago
randomgener v1.2.4
A random module!
NPM
Intallation
npm i randomgener --save
Importing
const rand = require('randomgener');note: if using this way then you will have to put rand at the start of every cammand
or
import { random } from 'randomgener';Usage
random.int(max);return's a integer that is between 1 and max including them
random.gen();return's male or female
random.choice(array);return's a random part of the array
random.float3(max);return a number to the thousanths less the max (possible to get a two digit if the thousanths is 0)
random.will(array, whatyouwant);return a part of the array though there is a higher change of getting whatyouwant;
whatyouwant is a length in the array that starts at 1 instead of 0
random.int0(max)return's a integer number between 0 and max including them