# Number range, not random

**URL:** <https://forum.kirupa.com/t/number-range-not-random/223469>\
**Category:** flash\
**Created:** [April 23, 2007, 4:24am UTC](https://forum.kirupa.com/t/number-range-not-random/223469 "2007-04-23T04:24:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyg3r](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tyg3r/32/1341_2.png) [@Tyg3r](https://forum.kirupa.com/u/Tyg3r)\
**Post date:** [April 23, 2007, 4:24am UTC](https://forum.kirupa.com/t/number-range-not-random/223469/1 "2007-04-23T04:24:58Z")

</div>

Hi

I have a single line for my XML gallery,that I’m have a few troubles with.

I want to tell the gallery that after it has loaded all the thumbnails; to perform a function on the the 5th thumbnail up to the 40th.

gal[“thumb”+(5+random(40))].gotoAndStop(2);

So far, I’ve just managed to tell it to randomly select any thumbnails from 5 to 40. I need EVERY thumbnail from 5 to 40.

Any ideas?
