anyrandom
v1.2.1
Published
a npm package to generate anything random.
Downloads
3
Readme
anyrandom
anyrandom is a npm package to generate anything random.
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"));