Workflow Soluiton

 View Only
  • 1.  Randomly selecting an item from an array

    Posted 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, is there a way to randomly sort the array?


  • 2.  RE: Randomly selecting an item from an array
    Best Answer

    Posted Feb 12, 2010 04:36 AM
    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

    Posted Feb 12, 2010 12:55 PM
    Thanks a lot. That worked pretty well.