How to make widgets pop up randomly on the screen?

I’v searched online and tried to figure it myself as well but i cant figure it out. Basically what i’m aiming for is to make one widget to multiply and randomly pop up in the screen in random locations. For example in Flappy bird the pipes gets a randomized position, like that. I’d appreciate and be very grateful to whoever helps me.Thanks!