Step 1: Obtain copy of Pokemon Red/Blue
Step 2: Get walk through walls (whether by cheating, the Safari Zone method, Brock through Walls, arbitrary code execution, etc.)
Step 3: Go to a glitch city (walk carefully)
Step 4: Wander around