Currently i am working on a game which require the player to solve the question by phrasing words, every time i start my layout it will randomize a sentence.
I have randomize a sentence of 9 words with 9 text label:
My name is Jerry and i hate Cat Tom
i manage to shuffle the words by putting them into array, randomize them and then comparing them by each text labels.
But now i have a problem here for this sentence:
My name is Jerry and her name is Jane
You notice there are 2 "is" and 2 "name" How i can shuffle such sentence by comparing text labels? Been trying this for 2 days and i am still stuck.
P.S, I've used the search button but no solutions found. And yeah, i am newbie.