Is it possible to keep track of random character in array?

Hello everyone I created a project I set a “swipe gesture” thing I put some label there when I swipe left it displays a string from array randomly e.g. from “aaaaa” to “bbbbb”. I want to swipe right and see the previous label which was displayed. The problem is that I can not keep track of that string because it is random is it possible to swipe right and see the previous label if you did not understand what the problem is I am providing a picture of my code.

you can simply add a variable just below your UILabel, same as the code when doing the scores for the war app, then save your Int.random() in that variable