This is not a port problem, you must know which port is being used before setting for listener anyways

You cannot set a range, imagine you set it from 5000 to 5050 which ports is your tnsnames going to use? All of them?

For a single database I have never have to used more than 3 ports and usually 1 is more than enough