randomElement

API -

return function
    local values = { 'word1', 'word2', 'word3'};
    local test = helper.randomElement(values);
    log(test); 
    --this will log a random string from values. It could be word1, word2, or word3
end

Last updated