Making a Variable = Actor X's Name Based on X's Value

I have a variable, variable3, that randomizes between 2 and 5. I want to use the number from variable3 to call the corresponding actor ID's name ( if variable3 = 2, save variable4 as actor 2's name ). Instead of checking each possible outcome, I was wondering if it was possible to combine $gameActors.actor(actorId).name() with $gameVariables.value(id) or something like that to save the data that way.
Sorry if I made this incredibly confusing! Please let me know if there's something that needs clarifying!
This?

1588655802448.png

Code:
$gameVariables.setValue(4, $gameActors.actor($gameVariables.value(3)).name());

Original thread: https://forums.rpgmakerweb.com/threads/making-a-variable-actor-xs-name-based-on-xs-value.121108/