Replace an Actor (Wall) with a Different Actor

Hi,
I would like to replace a wall I have that randomly spawns with a different actor. Currently, I have a random number that decides whether the wall is destroyed using the destroyactor function. If the wall is not destroyed, I would like to have another random number that if selected destroys the current wall and replaces it with a different type of wall. Is there a command like destroyactor that destroys an actor and also replaces it with something else or is there a way to do this? Thanks in advance for all of your help!