.
american roulette algorithm wfun