If you mean random predetermined pairs then you can store them in an array where first column is the pair like TK, and second column is the answer. To pick at random you can use random(x) to choose a random row number of the array where x is the number of rows. When TK is chosen for example you can compare the text input in the textbox against the answer in column 2, if I understood the game correctly.