.
american roulette algorithm qibd