Intermitent problems are the worst.
The last thing you chec k/fix will be the problem.
Fuel tank vent open/clear?
Tank cap open?
Pet weiner/ tank clean?
Float height?
Float needle valve/seat?
Carb vents?
Check/clean all electrical connections, switches, grounds. Diamond bit in Dremal works great for cleaning. Remove any black/green crud.
http://www.harborfreight.com/50-piece-diamond-rotary-point-set-69665.html
http://www.harborfreight.com/20-piece-18-in-shank-rotary-diamond-point-tips-69653.html
Or even some sand paper/emery cloth.
Check/clean/bypass switches.
As mentioned, stator plate to engine corrosion.
Ohm stator,pick-up coil, ing coil, plug cap (seperatly, 5k)
trim 1/4" from coil wire before re-installing plug cap. Nice fresh, clean wire.
Di-electric grease is highly recomended on all electric connections, maybe even between stator plate and engine case. prevents corrosion, water intrusion.
Check/clean/tighten
ALL ground points, especially CDI and coil. Highly recomend running seperate ground from coil back to engine, nice heavy wire, 16/14/12ga, chunk of heavy speaker wire. Steel (frame) is a poor coductor of electricity.
New plug??