公告板
版本库
filestore
活动
搜索
登录
template
/
start_app
学习APP程序
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
first commit
cshenfu
2024-06-27
58aa6e282bb343503be3cb198948328ea3ed7b79
[template/start_app.git]
/
node_modules
/
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;