Skip to content

Commit

Permalink
fixed off by one error
Browse files Browse the repository at this point in the history
programming is my passion
  • Loading branch information
amplified1 authored Dec 12, 2023
1 parent 4da2447 commit 4e1dd03
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)];
image.src = sources[getRndInteger(0,(sources.length)-1)];

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

0 comments on commit 4e1dd03

Please sign in to comment.