UNPKG
pass-xkcd
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Generate a password with set of words
github.com/AP-Atul/pass-xkcd
AP-Atul/pass-xkcd
pass-xkcd
/
src
/
math.js
10 lines
(8 loc)
•
197 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
random
= (
max
) => {
return
Math
.
floor
(
Math
.
random
() * (
Math
.
floor
(max -
1
) -
0
+
1
)) +
0
; }
const
fours = [
1
,
2
,
3
,
4
];
const
twos = [
1
,
2
];
module
.
exports
= { random, fours, twos }