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