UNPKG

tsc-game

Version:
7 lines (6 loc) 170 B
export function rollDice() { return Math.floor(Math.random() * 6) + 1; } export function rollDices(): [number, number] { return [rollDice(), rollDice()]; }