Generate random text

How would I generate and output a group of 7 letter and numders? …if possible, in a way that I can assign each character a display group.

Gilbert

This prints out one random character.   Get seven of them, create a text object with display.newText, put each in its own group.

local str=“0123456789abcdefghijklmnopqrstuvwxyz”

print(string.char(str:byte(math.random(1, #str))))

Awesome thanks! That worked!

This prints out one random character.   Get seven of them, create a text object with display.newText, put each in its own group.

local str=“0123456789abcdefghijklmnopqrstuvwxyz”

print(string.char(str:byte(math.random(1, #str))))

Awesome thanks! That worked!

How did you put in text? Mine is not working :frowning:

How did you put in text? Mine is not working :frowning: