Show a different post every 3 days [duplicate]

Your code example isn’t random though, it’s a fixed offset, based on a week number.

As stated this isn’t something that can be expressed in query API I think.

You would probably have to keep track of state with something like following algorithm:

  1. Query a random post, store its ID
  2. Store a date three days ahead
  3. Check date, if it hadn’t passed yet show stored post
  4. If date had passed repeat from the start (and exclude current post from query)