Infinite loop of multiple sound components

Continuing the discussion from Problem looping a sound:

I would like to introduce an infinite loop of my sound components.

  1. Infinite loop for both background music and audio tracks being called from database.

  2. A “smart shuffle” (so it does not pull the same audio files again and again, but keeps it on a new track for a set amount of few iterations. For example, when I test it, sometimes the same audio file plays 3x. )

Can anyone help?