dashboard
repositories
filestore
activity
search
login
main
/
qfqk-android
洪城义警-安卓端
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
服务器配置
zengh
2022-09-14
8ea19a6bb34daab1410f6186992a4c1e90299c92
[qfqk-android.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;