[SPARK-4449][Core] Specify port range in spark

In some case, we need specify port range used in spark, such as firewall.
Agree with inclusive-exclusive issue. But i am still not clear for port 0, In my understanding, if we pass 0, it will use a random port available, right?