.
american roulette algorithm xtal