dashboard
repositories
filestore
activity
search
login
main
/
yibei_wechat
宜呗小程序--微信小程序
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
first commit
Lzk
2025-08-05
b7bcaf556aa2424e808b6e6426ab22df9cfe11c1
[yibei_wechat.git]
/
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;