In spite of its flexibility, computing nonlinear problems in random media is very expensive. Hence, in practice, it is needed to consider environments which are small random perturbations of periodic ones, and then to obtain some asymptotic expansion for the ergodic constants. Concrete examples of such phenomena that relate to Hamilton-Jacobi equations are large deviations, front propagation and random walks in random media. The latter strengthens the connection with probability.