apius 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +8 -0
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apius",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "A simple package.",
5
5
  "main": "index.js",
6
6
  "type": "module",