refactoring in progress checkpoint reached
goal: remove class by breaking it up into smaller functions
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
|
||||
export function getRandomInt(max: number) {
|
||||
return Math.floor(Math.random() * max) + 1;
|
||||
export function dAny(sides: number) {
|
||||
return Math.floor(Math.random() * sides) + 1;
|
||||
}
|
||||
|
||||
export function d6() {
|
||||
return getRandomInt(6)
|
||||
return dAny(6)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user