First, welcome to OCC..........
A couple of things come to mind:
* You may have a bad Ignition Switch, intermittently working.
* The Battery Cables (both Positive and Ground), need to be clean, bright, and tight, on both ends.
* Lastly, the Starter Solenoid maybe be bad (dirty and/or dry).