We obtain Wiman–Valiron type inequalities for random entire functions and for random analytic functions on the unit disk that improve a classical result of Erdős and Rényi and recent results of Kuryliak and Skaskiv. Our results are then applied to linear dynamics: we obtain rates of growth, outside some exceptional set, for analytic functions that are frequently hypercyclic for an arbitrary chaotic weighted backward shift.