update for v 2.0.0
This commit is contained in:
1 parent
5c52a7b49d
commit
31fa0c6698
57 files changed
+2696
-4887
No files matched your search
@@ -0,0 +1,7 @@
|
||||
export function randomExtend (minNum, maxNum) {
|
||||
if (arguments.length === 1) {
|
||||
return parseInt(Math.random() * minNum + 1, 10)
|
||||
} else {
|
||||
return parseInt(Math.random() * (maxNum - minNum + 1) + minNum, 10)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user