I need to fill a field with false string data from a given list randomly. There are rand
and randf
functions generating random numbers. There is a similar (not identical) question: Updating attribute field with random string value. But it doesn't meet my need. Also, the answer in that post does not work as expected.
How can I fill the field with a random string from a list, preferably using existing functions?
Pseudo-expression I need: randstr(['A', 'B', 'C'])
.