refactor a bit

This commit is contained in:
2023-07-26 23:35:43 +02:00
parent a8e7407aba
commit aa282f8971
5 changed files with 215 additions and 143 deletions
+8
View File
@@ -0,0 +1,8 @@
export function getRandomInt(max: number) {
return Math.floor(Math.random() * max) + 1;
}
export function d6() {
return getRandomInt(6)
}