You can fix a car that randomly dies while driving by using a scanner tool to diagnose and replace a failed camshaft position sensor, replace spark plugs, or clean the injectors. It all depends on the source of the issue, so you should use the scanner and check your ECU in the nearest service as well. This way you'll know just what it takes to do the repairs on time and prevent your engine from dying for good the next time you take your car for a drive.