UNPKG

xxm-test-js

Version:
16 lines (15 loc) 419 B
/** * 获取指定范围内的随机整数。 * * @param min - 最小值(包含)。 * @param max - 最大值(包含)。 * @returns 一个介于 minmax 之间的随机整数。 * * @example * ```typescript * // 示例使用 * const randomInt = getRandomInt(1, 10); * console.log('随机整数为:', randomInt); * ``` */ export declare function getRandomInt(min: number, max: number): number;