U
unba1300
Guest
I've created this function so that I can call it and get a random result each time:
And trying to call it from another sub like this:
I don't get any errors, but nothing is getting picked from the list.
B4X:
Sub PickTrait (Trait As String)
i = Rnd(0, lstTraits.Size)
Return lstTraits.Get(i)
End Sub
B4X:
PickTrait(Trait1)
PickTrait(Trait2)
sb.Append(Trait1).Append(" and ").Append(Trait2)