Products
Applications
Support
Company
How To Buy
Skip to main content (Press Enter).
Sign in
Skip auxiliary navigation (Press Enter).
Register
Skip main navigation (Press Enter).
Toggle navigation
Search Options
Home
My Communities
Communities
All Communities
Enterprise Software
Mainframe Software
Symantec Enterprise
Blogs
All Blogs
Enterprise Software
Mainframe Software
Symantec Enterprise
Events
All Events
Enterprise Software
Mainframe Software
Symantec Enterprise
VMware
Water Cooler
Groups
Enterprise Software
Mainframe Software
Symantec Enterprise
Members
Workflow Soluiton
View Only
Community Home
Threads
Library
Events
Members
Back to discussions
Expand all
|
Collapse all
sort by most recent
sort by thread
Randomly selecting an item from an array
Jump to
Best Answer
Aryanos
Feb 11, 2010 04:31 PM
Does anyone know if there is a way to randomly select an item from an array? If this is not possible, ...
Migration User
Feb 12, 2010 04:36 AM
Best Answer
You can use the 'Create Random Number' and the 'Get Item By Index' components. Set min=0 and max= yourArray[].Count ...
Aryanos
Feb 12, 2010 12:55 PM
Thanks a lot. That worked pretty well.
1.
Randomly selecting an item from an array
0
Recommend
Aryanos
Posted Feb 11, 2010 04:31 PM
Reply
Reply Privately
Options Dropdown
Does anyone know if there is a way to randomly select an item from an array? If this is not possible, is there a way to randomly sort the array?
2.
RE: Randomly selecting an item from an array
Best Answer
0
Recommend
Migration User
Posted Feb 12, 2010 04:36 AM
Reply
Reply Privately
Options Dropdown
You can use the 'Create Random Number' and the 'Get Item By Index' components. Set min=0 and max= yourArray[].Count - 1. The random component then generates the indexnumber to use in 'Get Item by Index'.
Cheers, Claus
3.
RE: Randomly selecting an item from an array
0
Recommend
Aryanos
Posted Feb 12, 2010 12:55 PM
Reply
Reply Privately
Options Dropdown
Thanks a lot. That worked pretty well.
×
New Best Answer
This thread already has a best answer. Would you like to mark this message as the new best answer?
Copyright 2019. All rights reserved.
Powered by Higher Logic