web-random-utils
v1.0.3
Published
Generate massive amounts of fake contextual data
Downloads
292
Maintainers
Readme
📦 Install
npm install web-random-utils -D
🪄 Usage
// ESM
import {randomNumber, randomPassword} from 'web-random-utils';
// 随机数值
randomNumber() // 654
randomNumber(2, 500) // 300
生成密码
randomPassword() // u^u;4#9%Kw8{q[cF
randomPassword(12, 'low') //WHnocjIPgrBzRJdQ
randomPassword(12, 'medium') //aItjlvn1mIVm0PLz
randomPassword(12, 'strong') //+3Mm9EP<zJGNTu/Y
generateUuid() // 8837e72c-9638-4b1e-a86d-a07637f30748
generateGender() // 男