How to avoid repetitive SFX?

I have a sound effect that plays many times consecutively

is there a piece of code that can be applied to the sound to randomize it and make it less repetitive?

or is the solution to just have different sound files and randomize which file is played?

thanks

Have you heard about the Audio Random Container ?