.
american roulette algorithm qbgd