Car doesn't want to start sometimes...

Idle air control....can make it surge die out or sometimes not even start. Seemingly for no reason......just tap on it and it will free up the valve inside. Or replace it. But I could be wrong as far as that being the problem.........just a suggestion.