Hi guys,
I want to pick a random string value.
I have assign all the string value, then the robot will choose randomly.
is there any way?
Regards.
Hi guys,
I want to pick a random string value.
I have assign all the string value, then the robot will choose randomly.
is there any way?
Regards.
not sure about what was done.
lets assume we do specifiy an array with strings. So we can pickup up randomly a value by
YourArray(new Random().Next(0,YourArray.Length - 1))
find a sample here:
RandomString.xaml (4.2 KB)
hi @ppr
I have tried it, It worked… but only chose “A” and “B” only.
The probability of “C” be selected is zero.
is there any other ways?
Regards.
@Amin
the Random is technically not so random for smaller values.
Lets check this trick:
and use:
arrTokens(Rndm.Next(0,100) Mod arrTokens.Length)
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.