How do I spawn a pick up within a given area after the player has collected it?

I want the player to pick up a coin and once they pick it up the coin will then be destroyed and then spawn in another random position on screen, but I have no idea how to do this as I am still learning. Please help.

I think what do you mean by using UI? If so, you have to add a trigger in the coin so that later, through a script, if the player is in the range of the trigger and decides to pick it up, start an animation. Then at the end of the animation, destroy the object of the coin and add a UI element to the screen, to indicate that you picked up the coin, but what do you mean by another random position on the screen?