Random Range with limits

I declared

Vector3 position = new Vector3(Random.Range(x, y), 0, 0);

i need value from 5-10 and 20-25 for x and y.

Usually i used to give

Random.Range(-0F,-2F);

But here its not possible.

Is any union function in unity?

or any other method ???

Waiting for gentle ideas and proper reply.

Thanks in Advance.

I have read before there is no such thing in the Unity implementation. You would have to do it yourself.

int GetRange(){
   int a = Random.Range(5,10);
   int b = Random.Range(20,25);
   if(Random.Range(0,2)==0)
      return a;
   else 
      return b;
}

Why not:

Vector3 position = new Vector3(Random.Range(Random.Range(5,10), Random.Range(20,25)), 0, 0);