just another alternative
create a text variable textvar = Alex;John;Stephen;Helen;Tina;Josephine
go get a random name from this use set name to tokenat(textvar,floor(random(tokencount(textvar,";"))),";")
You also can add a simple input into the variable if you want.
like set textvar to textvar&";"&textbox.text
or another:
array:
(start with 0,1,1 sized array)
when entering text: push array x back value = textbox.text
when selecting a random name: set name to array.at(floor(random(array.width)))