Using Unreal 5.7. I know how to create a Sound Cue or a MetaSound. I know how to set a .wav file asset to loop either each one. I know to create a .wav file array n each of them and have them select a random .wav from the array. Each of the .wav files is anywhere from 3 to 6 minutes long.
What I cannot figure out is how to have either one loop infinitely but play a random .wav on each iteration.
How about something simple since you seem to have all the pieces ready.
Keep your sounds on non loop and keep them in array as you do now. Have a button to toggle between repeat/random (or however you wish to handle this). Keep track of which sound you’re playing right now (index from array?) and based on toggle selection, play the same sound again or go back to picking random (probably do a check here so you don’t pick the same one again) at which point you would update your current sound playing variable.