Use random function to pull random values?

I'mnoob

Member
So can we use random function in a way that it can choose a random value from a array?

I tried implementing this, but failed again and again.

If anyone have a way please share.
Thanks
 

hsurB

Well-known member
Well. If keys are numerical(from 1 to 10 for exemple) you can create variable that will be random number from 1 to 10 and then get the value using {v=NameOfArray[{v=RandomNumberVariableName}]}

Edit. Yeah. I missed } at the end
 
Last edited:

Dm114

Well-known member
Well. If keys are numerical(from 1 to 10 for exemple) you can create variable that will be random number from 1 to 10 and then get the value using {v=NameOfArray[{v=RandomNumberVariableName}]
Generally key range starts at 0...
 

I'mnoob

Member
Well. If keys are numerical(from 1 to 10 for exemple) you can create variable that will be random number from 1 to 10 and then get the value using {v=NameOfArray[{v=RandomNumberVariableName}]
I think U missed } bracket at the end or I'm wrong?
Thanks I got it working
 
Top