slaywithfriends/src/die.js

3 lines
74 B
JavaScript

export function rollDie() {
return Math.floor(Math.random() * 6) + 1;
}