I'm trying to select a random item from a comma-delimited list, which I understand KM treats as an array. The length of the array will vary.
set variable "FruitList" to "apples,bananas,lemons,limes" works fine, and %Variable%FruitList[3]% returns "lemons" as expected. %Variable%FruitList[0]% returns "4" — the length of the array — as expected.
But I can't use %Variable%FruitList[0]% as the input to a RAND() function. Attempting that generates an error. So I'm not sure how to get a random integer in the range of my array length.