Skip to content

Commit

Permalink
Merge pull request #768 from CSA-Coders-2025/main
Browse files Browse the repository at this point in the history
Media Bias Exploit Fix
  • Loading branch information
aaguy-hue authored Mar 1, 2025
2 parents 56cc3cb + ea30fe6 commit 8a3598e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion media/media.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,13 @@ permalink: /media
const randomLeftImages = getRandomSubset(leftImages);
const randomRightImages = getRandomSubset(rightImages);
const randomCenterImages = getRandomSubset(centerImages);
return [
const combined = [
...randomLeftImages,
...randomRightImages,
...randomCenterImages
];
const shuffledFinal = combined.sort(() => 0.5 - Math.random());
return shuffledFinal;
}
const randomImages = getRandomImages(imageFiles);
randomImages.forEach((file, index) => {
Expand Down

0 comments on commit 8a3598e

Please # to comment.