cunnyclick.js 289 B

1234567
  1. function loadRandomImage() {
  2. const randomNumber = Math.floor(Math.random() * 60);
  3. const randomImage = "https://media.cunny.center/fedi-assets/random-cunny/" + randomNumber + ".png";
  4. document.getElementById("fav-cunny").src = randomImage;
  5. }
  6. window.onload = loadRandomImage();