fixed variable error

This commit is contained in:
mdrockwell committed 2025-08-14 12:12:40 -04:00
1 parent 1e7c99c9b6
commit fbfb18718d
1 file changed
-1
-1
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
const resultNumber = Math.floor(Math.random() * promptIntHigh) + promptInt;
const resultNumber = Math.floor( Math.random() * (promptIntHigh - promptInt + 1) ) + promptInt;
// Create a message displaying the random number