update for v 2.0.0

This commit is contained in:
jiaming743 committed 2019-06-25 19:57:04 +08:00
1 parent 5c52a7b49d
commit 31fa0c6698
57 files changed
+2696 -4887

No files matched your search

+7
View File
@@ -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)
}
}