# Random Sound start position

**URL:** <https://forum.kirupa.com/t/random-sound-start-position/170144>\
**Category:** flash\
**Created:** [November 23, 2005, 4:50am UTC](https://forum.kirupa.com/t/random-sound-start-position/170144 "2005-11-23T04:50:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![codemonkeypete](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@codemonkeypete](https://forum.kirupa.com/u/codemonkeypete)\
**Post date:** [November 23, 2005, 4:50am UTC](https://forum.kirupa.com/t/random-sound-start-position/170144/1 "2005-11-23T04:50:37Z")

</div>

Hi Guys - I am wanting to create a function that will start my sound loop from a random position. I have created the sound obje3ct and loaded the sound via the identifier, etc… I also have this bit sussed : [color=#666666]soundloop[/color].start([color=#666666]secondOffset [/color], [color=#666666]loop[/color]); … I have tested this to make my sound play from the 5th second, now i would like to make the onPress event of my sound button start the sound from a random point. i thought about using arrays, and checked out Mr Kirupas tut’ on this, but im very much stuck on making it all happen… any advice would be greatly appreciated. Cheers.
