Hi dop2000
Thanks for the suggestions.
I decided to use this solution:
+ AJAX: On "questions" completed
-> System: Set totalQuestions to tokenat(AJAX.LastData,0,"|")
-> questionsArray: Set size to (totalQuestions+1, 1, 1)
-> questionsArrayTemp: Set size to (totalQuestions+1, 1, 1)
----+ System: controlRandom = 0
--------+ System: For "For Each Questions Set" from 0 to questionsArray.Width
---------> questionsArray: Set value at i to tokenat(AJAX.LastData,i,"|")
---------> System: Add 1 to i
----+ System: Else
--------+ System: For "For Each Questions Set" from 0 to questionsArrayTemp.Width
---------> questionsArrayTemp: Set value at i to tokenat(AJAX.LastData,i,"|")
---------> System: Add 1 to i
--------+ System: Repeat questionsArray.Width times
---------> System: Set iTemp to int(random(1, questionsArrayTemp.Width))
---------> questionsArray: Set value at LoopIndex+1 to questionsArrayTemp.At(iTemp)
---------> questionsArrayTemp: Delete index iTemp from X axis
And it worked very well. I just don't understand why the other solution generated so weird results. But this is not a problem.