How to randomise where to start playing ambient sounds?

What is AudioK? You have to use the length of the sound you’re playing…