Skip to content

Commit d56b393

Browse files
authored
Update script.js
1 parent 297a4cb commit d56b393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

8-trifecta/42-mood-ring/script.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const stone = document.getElementById('stone');
55

6-
const randomNumber = Math.floor(Math.random(9) * 10) + 1;
6+
const randomNumber = Math.floor(Math.random() * 10) + 1;
77

88
if (randomNumber == 1) {
99
stone.style.backgroundColor = "red";
@@ -23,4 +23,4 @@ if (randomNumber == 1) {
2323
stone.style.backgroundColor = "purple";
2424
} else {
2525
stone.style.backgroundColor = "black";
26-
}
26+
}

0 commit comments

Comments
 (0)