.
american roulette algorithm qdib