Playing randomised audio files through independently randomised trial loops

For reference, you mean this thread I think:

Why wouldn’t that sort of approach work for you?

In that thread, you’ll see that the list of music files is explicitly randomised in code, independently of any other conditions.