diff --git a/src/math/random.ts b/src/math/random.ts index 8649a85..45730f9 100644 --- a/src/math/random.ts +++ b/src/math/random.ts @@ -1,6 +1,14 @@ +/** + * This function generates a random number between `min` and `max`. + * @param min Minimum number + * @param max Maximum number + * @param process A function the processes the random generated number + * @returns A random number + */ export default function random( min : number, - max : number -) { - + max : number, + process = Math.floor +) : number { + return 0; }