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