.
roulette online algorithm kdqr