Hi,
I need to select a Random word from a group of predefined words.
For eg:-
apple ,orange,grapes, banana
From the above I need to display any random word.
Please give the syntax to do so...
Thanks
Select a Random word from a group of words.
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
This sounds like a very similar topic to one discussed here very recently. Might want to check out the search feature. But, try this:
Code: Select all
Let>WordList=apple;orange;grapes;banana
Separate>WordList,;,Words
Random>Words_Count,WordNum
Let>WordNum=WordNum+1
Let>TheWord=Words_%WordNum%
MessageModal>Random Word From List: %TheWord%
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?