random-generator-js
You can generate random number, text, password or value that you want with custom length easily.
List of Features
- Generate a random number (custom length)
- Generate a random text (custom length)
- Generate a random password (custom length)
- Generate a random value (custom length)
Download & Installation
$ npm i random-generator-js
Example Usage
const {generateRandom, generateRandomNumber, generateRandomText, generateRandomPassword} = require('js-random-generator')
const length = 8
const characterSet = 'qwerasdfzxcv'
const randomNumber = generateRandomNumber(length)
console.log(randomNumber)
const randomTextOnlyUpper = generateRandomText(length,false)
console.log(randomTextOnlyUpper)
const randomTextWithLower = generateRandomText(length,true)
console.log(randomTextWithLower)
const randomPassword = generateRandomPassword(length)
console.log(randomPassword)
const randomValue = generateRandom(length,characterSet)
console.log(randomValue)
License
This project is licensed under the MIT License