# Rnd No. from X to Y & Vars in Delay Action

**URL:** https://www.finalbuilder.com/forums/t/rnd-no-from-x-to-y-vars-in-delay-action/4787
**Category:** Feature Requests
**Created:** [October 5, 2011, 10:04am UTC](https://www.finalbuilder.com/forums/t/rnd-no-from-x-to-y-vars-in-delay-action/4787 "2011-10-05T10:04:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sexy-trousers](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sexy-trousers/32/97_2.png) [@sexy-trousers](https://www.finalbuilder.com/forums/u/sexy-trousers)
#### Post date: [October 5, 2011, 10:04am UTC](https://www.finalbuilder.com/forums/t/rnd-no-from-x-to-y-vars-in-delay-action/4787/1 "2011-10-05T10:04:06Z")

</div>

Can you add a "Min." value on the Random Number action please - right now there's only a "Max.", but it would be nice to have a random no. pulled from a range of values...

Also can you allow variables to be used in the delay action - right now only fixed, static numbers work (goes hand in hand with the above to allow for a random delay betweek actions...)

Thanks,&nbsp;TJ

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [October 11, 2011, 2:44am UTC](https://www.finalbuilder.com/forums/t/rnd-no-from-x-to-y-vars-in-delay-action/4787/2 "2011-10-11T02:44:03Z")

</div>

Hi TJ   
  
 The following build allows you to set the minimum value for the random number: [http://www.automise.com/downloads/automise/400/AT400\_130.exe](http://www.automise.com/downloads/automise/400/AT400_130.exe)   
  
 As for the delay action, to use a variable to specify the delay time you can use script to set this (where DelayVar is the variable containing the number of seconds to delay for):   
  
 [code]Action.Delay = DelayVar \* 1000 [/code]   
  
 The delay property is always in specified in milliseconds (hence the \* 1000 to make it seconds).   
  
 Hope this helps.   
  
 Regards,   
 Steve

---

<div class="post-metadata">

### Author: ![sexy-trousers](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sexy-trousers/32/97_2.png) [@sexy-trousers](https://www.finalbuilder.com/forums/u/sexy-trousers)
#### Post date: [October 11, 2011, 4:19am UTC](https://www.finalbuilder.com/forums/t/rnd-no-from-x-to-y-vars-in-delay-action/4787/3 "2011-10-11T04:19:47Z")

</div>

Thanks Steve. TJ
