Files
ets-module-collection/modules/classes/server-utils.ts

7 lines
248 B
TypeScript

import { timeStamp } from "console";
// A function that will take a min and a max and return a random number between them
export function rollDice(min: number, max: number): number {
return Math.floor(Math.random() * (max - min + 1) + min);
}