.
american roulette algorithm qprj