It’s a lot of things I have already mentioned - but as it is now a rotating automated system, there are rules programmed in about the length of each Adventure and repeatable Adventures and where they slot into the week, then there is a sub rule for various longer Adventures.
From my small understanding, it pulls then it grabs the Adventure that meets the requirements for that slot.