diff --git a/api/classes/Game.js b/api/classes/Game.js index e457817..965c39a 100644 --- a/api/classes/Game.js +++ b/api/classes/Game.js @@ -3,4 +3,8 @@ class Game { this.players = []; this.targetNumber = this.generateRandomNumber(); } + + generateRandomNumber() { + return Math.floor(Math.random() * 100) + 1; + } }