Simulation of wave propagation in random media: theory and applications