@@ -180,7 +180,10 @@ export function CarouselSection() {
}
};
- const handleRandomRoll = () => fetchAndRoll("/api/tmdb/popular");
+ const handleRandomRoll = () => {
+ const page = Math.floor(Math.random() * 50) + 1;
+ return fetchAndRoll(`/api/tmdb/popular?page=${page}`);
+ };
const handleGenreRoll = ({ genreIds, moodKeys }: { genreIds: number[]; moodKeys: string[] }) => {
setModalOpen(false);