@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
9 lines • 390 B
TypeScript
/**
* Returns a random integer between min and max (inclusive).
* @param {number} [min=0] - The minimum value.
* @param {number} [max=10] - The maximum value.
* @returns {number} The random integer.
* @throws {TypeError|RangeError} If min or max is not a number, or min > max.
*/
export default function random(min?: number, max?: number): number;
//# sourceMappingURL=random.d.ts.map