Issues with Random Post Order and Pagination in Query

Hello everyone,

I’m trying to create a query that displays posts in random order with pagination and frontend rendering. On the first page, everything works fine. However, when I navigate to the second page, some posts that were already displayed on the first page appear again.

How can I adjust the query so that it remembers the posts from the previous pages and ensures that new posts are displayed in random order without repetition?

Any guidance would be greatly appreciated!

Thanks in advance.