In this paper we present the theory of lacunary trigonometric sums and lacunary sums of dilated functions, from the origins of the subject up to recent developments. We describe the connections with mathematical topics such as equidistribution and discrepancy, metric number theory, normality, pseudorandomness, Diophantine equations, and the subsequence principle. In the final section of the paper we prove new results which provide necessary and sufficient conditions for the central limit theorem for subsequences, in the spirit of Nikishin's resonance theorem for convergence systems. More precisely, we characterize those sequences of random variables which allow to extract a subsequence satisfying a strong form of the central limit theorem.Contents 24 8. The subsequence principle 28 9. New results: Exact criteria for the central limit theorem for subsequences 36 Acknowledgments 49 References 50