npm.io
1.2.1 • Published 4 years ago

anyrandom

Licence
MIT
Version
1.2.1
Deps
0
Size
3 kB
Vulns
0
Weekly
0

anyrandom

anyrandom is a npm package to generate anything random.

ar

Install the package

npm install anyrandom

Functions

Random Number
const { number } = require("anyrandom");

console.log(number(41)); // 41 being the max number
Random Letter
const { letter } = require("anyrandom");

console.log(letter());
Random Character
const { character } = require("anyrandom");

console.log(character());
Random String
const { string } = require("anyrandom");

console.log(string(41)); // 41 being the length of the string
Shuffle String
const { shuffleString } = require("anyrandom");

console.log(shuffleString("Hello World"));
Random Character from String
const { randomFrom } = require("anyrandom");

console.log(randomFrom("Hello World"));

Keywords