Question about storing repeated random integer values

Hello!
I’m a newb here so would appreciate some sage advice -
If I’m running a random integer function from 0 to 4 in order to choose from an array, and run the whole thing three times to get three results - 0, 2,1 1, 1, 3 etc.
Is there a way to “store” these result and in order to reference somewhere else, as in - if resulting sequence is 1,2,3 do this, if 1,1,2 do that…?
Thanks!

I literally just did something like this last night. Here is an example below with a string array and string variable used to store and signal a resulting sequence. Took me a while but it was pretty fun working it out (again)!

Aha! very cool…
Thanks lightworker!