Pong game's ball doesn't bounce randomly. It has a well defined set of physics.Anyways, to create a bouncing effect, you must check the current position on-screen of the helper and simply change its velocity when the helper touches the edge of the screen.It's rather easy to do, provided you know how to create a helper and manage its own states.