mirror of
https://github.com/araxiaonline/ets-module-collection.git
synced 2026-06-13 11:02:25 -04:00
7 lines
248 B
TypeScript
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);
|
|
}
|