My experience for years before finally dropping Spotify, and reinforced in some random comment online, was that it only grabs the first X songs in a playlist and shuffles among them, never proceeding to the rest. "First" may not be entirely correct but it was relatively consistent that a given playlist would always shuffle the same songs so it may have something to do with internal ordering/IDs.