增加晶全app静态页面
This commit is contained in:
10
node_modules/vk-uview-ui/libs/function/random.js
generated
vendored
Normal file
10
node_modules/vk-uview-ui/libs/function/random.js
generated
vendored
Normal file
@ -0,0 +1,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;
|
Reference in New Issue
Block a user