dashboard
repositories
filestore
activity
search
login
main
/
qfqk-android_bf
洪城义警APP备份
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
备份
zengh
2022-05-09
52c39f5e2711e5535b689b66dfa5e100c7882b7f
[qfqk-android_bf.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;