Random factor generation unrolling