Putting together some of the previous basic ideas, I wrote a non-sequential ray tracer. Here is an example with a scene of random mirrors and semi-transparent mirrors. Rays are attenuated according to the transmission and reflection coefficients of the objects.