快速开始
工程化项目
AI 工具
中文
Appearance
生成指定范围内的随机整数。
参数
返回值
示例
import { random } from "@hy-app/ui"; const val = random(1, 10); console.log(val); // 随机数