string

string.string.random

Declaration
lua
string.random(pool, count)
Description
Generate random string from character pool using arc4random_uniform.
Parameters
NameTypeRequiredDefaultDescription
poolstringRequired—Character pool
countintegerRequired—Number of characters
Return Values
TypeDescription
stringRandom string
Example
lua
string.random("abc123", 8)