Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristofer543 authored Mar 3, 2024
1 parent dbe4781 commit c73b4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');

async function getImageUrlFull() {
const imageUrl = 'https://raw.githubusercontent.com/Sstudios-Dev/image-core/main/src/img/';
const randomNumber = Math.floor(Math.random() * 46) + 1; // Assuming there are 1000 images
const randomNumber = Math.floor(Math.random() * 60) + 1; // Assuming there are 1000 images
const imageName = `img-core${randomNumber}.jpg`;
return { imageUrlFull: `${imageUrl}${imageName}?raw=true`, imageName };
}
Expand Down

0 comments on commit c73b4a0

Please sign in to comment.