Abstract. We study threshold functions for the existence of solutions to linear systems of equations in random sets and present a unified framework which includes arithmetic progressions, sum-free sets, B h [g]-sets and Hilbert cubes. In particular, we show that there exists a threshold function for the property "A contains a non-trivial solution of M ·x = 0" where A is a random set and each of its elements is chosen independently with the same probability from the interval of integers {1, . . . , n}. Our study contains a formal definition of trivial solutions for any linear system, extending a previous definition by Ruzsa when dealing with a single equation.Furthermore, we study the distribution of the number of non-trivial solutions at the threshold scale. We show that it converges to a Poisson distribution whose parameter depends on the volumes of certain convex polytopes arising from the linear system under study as well as the symmetry inherent in the structures, which we formally define and characterize.