dashboard
repositories
filestore
activity
search
login
main
/
Inspection-uniapp
巡检系统app
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
修改当直接进行事件上报时报错的问题
guoshilong
2022-10-11
8f084a9bcef89eb96377bad1ecc834fb511fc330
[Inspection-uniapp.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;