apius 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +8 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -24,5 +24,13 @@ export default {
|
|
24
24
|
} else if(bold == true) {
|
25
25
|
return console.log(chalk.hex(hexCode).bold(str))
|
26
26
|
}
|
27
|
+
},
|
28
|
+
|
29
|
+
randomNumberGenerator: (min = 0, max = 100) => {
|
30
|
+
return Math.round(Math.random() * (max - min) + min)
|
31
|
+
},
|
32
|
+
|
33
|
+
randomArray: (arr) => {
|
34
|
+
return Math.floor(Math.random() * arr.length)
|
27
35
|
}
|
28
36
|
}
|