dashboard
repositories
filestore
activity
search
login
zhba
/
zhba_app_ys
智慧保安APP验收版本
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
部分修改
shuishen
2021-12-03
31a5c00aeb725b8aaccca1d9fab4f074aae4d22d
[zhba/zhba_app_ys.git]
/
uview-ui
/
libs
/
function
/
random.js
1
2
3
4
5
6
7
8
9
10
function random(min, max) {
if (min >= 0 && max > 0 && max >= min) {
let gab = max - min + 1;
return Math.floor(Math.random() * gab + min);
} else {
return 0;
}
}
export default random;