I always do things with strings, exactly the opposite from you. :) Here's some code for it, very similar to yours, but with a For() loop. However, I'm not sure what value X should be. :(
:"RANDOM CHARACTERS WITH A LENGTH CORRESPONDING TO THE NUMBER OF TERMS YOU WANT"->Str1
:.Length=77 // comment
:Data(1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1)->GDB1 // a list of the information you have
:.Something->X // I can't remember. There's a certain point in ASCII where the numbers start.
:.And to get it out
:GetCalc(Str1,X)→A // where X is the term you want to get out
To figure out what X is, try this:
:Pause 999 // about half a second for you to press [Clear]
:If getKey(15) // if you see a '0', that's what X should be. Press [Clear] to quit.
It will give a number, then it's ASCII token. Then it will pause, and do it again. When you see a number and a '0', press [Clear] to quit. The number right on top of the '0' will be the right number for X.