Hello,
I need to display a random word from a file.txt
I managed to display the first word from the file, taking expressions I found on the forum: tokenat(AJAX.LastData,loopindex,",")
thank for your attention,
Develop games in your browser. Powerful, performant & highly capable.
If that gets the first word this will get a random one:
tokenat(AJAX.LastData,int(random(tokencount(AJAX.LastData,","))), ",")
It works perfectly
I don't understand it very well but that's awesome thanks.