Commit 4fba4600dc2141b5a22513dd8962840979833323
1 parent
32710720
Exists in
master
and in
97 other branches
HomePage draft
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
index.html
@@ -55,6 +55,7 @@ | @@ -55,6 +55,7 @@ | ||
55 | 55 | ||
56 | function checkGuest() { | 56 | function checkGuest() { |
57 | var random = Math.floor(Math.random()*10); | 57 | var random = Math.floor(Math.random()*10); |
58 | + if ( random == 0 ) random = 1; | ||
58 | var answer = Math.floor(random * 2); | 59 | var answer = Math.floor(random * 2); |
59 | var input = prompt("Please enter " + random + " * 2 = ?", ""); | 60 | var input = prompt("Please enter " + random + " * 2 = ?", ""); |
60 | 61 |