How about something like this if possible.
Random>{500, 1000},Result
Result would return a random number between 500 and 1,000.
Random Range Feature
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7393
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Is this no good?
Random>500,Result
Let>Result=Result+500
Random>500,Result
Let>Result=Result+500
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Thank you for taking the time reading my post, Marcus.
Your example works just fine. That's what I've been doing all this time. Well, I use the Add function instead of Let.
I was just thinking that the ability to set the random range inside the random function would eliminate the extra line of code plus less typing for us lazy folks
Again, thanks for reading my post.
Your example works just fine. That's what I've been doing all this time. Well, I use the Add function instead of Let.
I was just thinking that the ability to set the random range inside the random function would eliminate the extra line of code plus less typing for us lazy folks
Again, thanks for reading my post.
- Marcus Tettmar
- Site Admin
- Posts: 7393
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Why don't you make a subroutine:
Wack that subroutine into an Include file or something and then in future you will save all that extra typing ;-)
Code: Select all
GoSub>RandomRange,500,1000
MessageModal>RandomRange_Result
SRT>RandomRange
Let>ZeroedRange=RandomRange_Var_2-RandomRange_Var_1
Random>ZeroedRange,RandomRange_Result
Let>RandomRange_Result=RandomRange_Result+RandomRange_Var_1
End>RandomRange
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?