1.2.4 • Published 4 years ago

randomgener v1.2.4

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

A random module!

NPM

randomgener

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

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.0.0

4 years ago