Dichotomy between structure and randomness in combinatorial number theory