代码提交
This commit is contained in:
@ -146,3 +146,12 @@ export function hasNetWork() {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取两数之间的随机数
|
||||
* @param min
|
||||
* @param max
|
||||
*/
|
||||
export function getRandom(min, max) {
|
||||
return (Math.random() * (max - min) + min).toFixed(2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user