generating random actors

well, i had developed a solution(javascript game) for a game and trying to make it work on GS. but the problem is that the solution uses an array.
In my game i need to pick some random words in an array, and then sort these words and take every letter and shuffle the letters. this way I can create actors that have each one, a letter as value.
example. having the words "apple,grape,banana" I pick grape and banana randomly, after that I shuffle words and letters, and let it say that the result is "anegabarpna" so in the game I had a puzzle in which each card has the value of a letter. and each card appear in the order that the letters are.
How I do that in GS without arrays? I use thousands of words for the puzzle.
i started to use GS today :-)
In my game i need to pick some random words in an array, and then sort these words and take every letter and shuffle the letters. this way I can create actors that have each one, a letter as value.
example. having the words "apple,grape,banana" I pick grape and banana randomly, after that I shuffle words and letters, and let it say that the result is "anegabarpna" so in the game I had a puzzle in which each card has the value of a letter. and each card appear in the order that the letters are.
How I do that in GS without arrays? I use thousands of words for the puzzle.
i started to use GS today :-)