Using random numbers to change image using a table... ERROR

I have 5 separate actors that are assigned integer attributes.
When a button is clicked, the random function assigns different random numbers to these integers (named rand1, rand2, etc.)
The actors image changes based on the table cell value (table, row, column) .
I have the table created and set it in the table cell value, then I put the actors integer (rand1) in as the row, and then column as 1.
I set these rules for all of the 5 actors (each with a different rand1, rand2, etc)
When i click the button, only the first actor changes and works. The others stay the same images.

If you could help me I'd really appreciate it!
Sign In or Register to comment.