Extract rand functions to common
Implement roulette(no_tokens)