Skip to content

Commit

Permalink
unfixed off by one error
Browse files Browse the repository at this point in the history
my genius is almost frightening
  • Loading branch information
amplified1 committed Dec 12, 2023
1 parent 4e1dd03 commit cd37104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<script>
const image = document.getElementById("imgDisplay");
const sources = ["https://www.theneolanders.com/assets/404/Neolanders_404.webp", "https://www.theneolanders.com/assets/404/Neolanders_404-2.webp"];
image.src = sources[getRndInteger(0,(sources.length)-1)];
image.src = sources[getRndInteger(0,sources.length)];

function getRndInteger(min, max) {
return Math.floor(Math.random() * (max - min) ) + min;
Expand Down

0 comments on commit cd37104

Please sign in to comment.