deprecated-generators
v2.2.2
Published
The Random Value Generators by xc7b
Downloads
47
Readme
Random Value Generators
It's the deadly simplest generators. which will writes on typescript.
Note
This library having the decorators, please use this.
Version 1.08
updates: Decorators will produce result to decorated method
version 2.2.0
updates: generators will bi working
Usage
Generator.generateRandomNumber(100, 200);
// return number for you, which contains in gap between 100 and 200
Generator.generateRandomColor(155, 200);
// return r, g, b view of color for you
Generator.generateRandomString('ru', 5);
// return random string consisting from russian alpabet for ypu
expost class Test {
@RandomColor(100, 255)
myMethod() {
console.log("random color: ', this.myMethod);
}
}
//returns random color: {r,g,b}