Many important problems in combinatorics and other related areas can be phrased in the language of independent sets in hypergraphs. Recently Balogh, Morris and Samotij [3], and independently Saxton and Thomason [62] developed very general container theorems for independent sets in hypergraphs; both of which have seen numerous applications to a wide range of problems. In this paper we use the container method to give relatively short and elementary proofs of a number of results concerning Ramsey (and Turán properties) of (hyper)graphs and the integers. In particular:• We generalise the random Ramsey theorem of Rödl and Ruciński [54, 55, 56] by providing a resilience analogue. Our result unifies and generalises several fundamental results in the area including the random version of Turán's theorem due to Conlon and Gowers [14] and Schacht [64]. • The above result also resolves a general subcase of the asymmetric random Ramsey conjecture of Kohayakawa and Kreuter [40]. • All of the above results in fact hold for uniform hypergraphs.• For a (hyper)graph H, we determine, up to an error term in the exponent, the number of nvertex (hyper)graphs G that have the Ramsey property with respect to H (that is, whenever G is r-coloured, there is a monochromatic copy of H in G). • We strengthen the random Rado theorem of Friedgut, Rödl and Schacht [24] by proving a resilience version of the result. • For partition regular matrices A we determine, up to an error term in the exponent, the number of subsets of {1, . . . , n} for which there exists an r-colouring which contains no monochromatic solutions to Ax = 0. Along the way a number of open problems are posed. MSC2000: 5C30, 5C55, 5D10, 11B75.