Russian roulette (Monte Carlo) (source code)

= Russian roulette
{disambiguate=Monte Carlo}
{c}

Unbiased random termination of a sampled contribution: retain it with probability $q>0$ and multiply surviving contributions by $1/q$. In <path tracing> this controls path length without the systematic truncation of a fixed bounce limit, provided the continuation probabilities and weights are handled consistently.