@helper-modules/random
Generate random String, Number and color.
Installation
npm i @helper-modules/random
Usage
Syntex
random(length: Number);
- Params:
-
length
:- type:
Number
- default:
10
- description: Length of string
- type:
-
Random Number
random.number(min: Number, max: Number);
- Params:
-
min
:- type:
Number
- default:
0
- description: Minimum number
- type:
-
max
:- type:
Number
- default:
100
- description: Maximum number
- type:
-
UUID
random.uuid();
- It uses
uuidv4
for generating UUIDs
Random Color
random.color();