If you win the lottery at the Goldenrod Radio Tower, as in all of the digits match one of your pokemon's ID number, or, and I think this is the easiest way, if you have a gameboy advance game, like Fire Red or Ruby, you can send the master ball you get in that game to your Heart Gold by making a pokemon hold it, and then sending the pokemon to your other game.