Decoupled random function.