If the generator you are talking about is a magneto, it will usually be located on the right front of the engine.
For forced air cooled engines, the magneto stator is installed on the right side of the box. On the engine, the rotor is installed on the crankshaft, a fan is installed outside the rotor, and a fan cover is installed on the outermost side for protection (mainly made of pp).
For large displacement water-cooled engines, the magneto stator is installed on the right side cover and the rotor is installed on the crankshaft. You can see it by opening the right side cover.