.
american roulette algorithm qmsh