dashboard
repositories
filestore
activity
search
login
main
/
qfqk-android
洪城义警-安卓端
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
Merge branch 'master' of http://192.168.0.105:10010/r/qfqk-android
liuyg
2022-02-21
e3dcaeb0180a4e37347ac9ceb44c8a59ae7af37f
[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;