refactor a bit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
|
||||
export function getRandomInt(max: number) {
|
||||
return Math.floor(Math.random() * max) + 1;
|
||||
}
|
||||
|
||||
export function d6() {
|
||||
return getRandomInt(6)
|
||||
}
|
||||
Reference in New Issue
Block a user