.
american roulette algorithm nids