Puzzle to generator random number in various sets