fixed variable error

This commit is contained in:
2025-08-14 12:12:40 -04:00
parent 1e7c99c9b6
commit fbfb18718d

View File

@@ -14,7 +14,6 @@ if ( Number.isInteger(promptInt) && Number.isInteger(promptIntHigh) ) {
// Use Math.random() and the user's number to generate a random number // Use Math.random() and the user's number to generate a random number
const resultNumber = Math.floor(Math.random() * promptIntHigh) + promptInt;
const resultNumber = Math.floor( Math.random() * (promptIntHigh - promptInt + 1) ) + promptInt; const resultNumber = Math.floor( Math.random() * (promptIntHigh - promptInt + 1) ) + promptInt;
// Create a message displaying the random number // Create a message displaying the random number