var getTransform:Transform;

function Start () {

var getInfo:Vector3=vScale(transform);

var x=Random.Range(getTransform.position.x-getInfo.x/2,getTransform.position.x+getInfo.x/2);

var z=Random.Range(getTransform.position.z-getInfo.z/2,getTransform.position.z+getInfo.z/2);

Debug.Log(getTransform.position.z-getInfo.z/2+“|”+getTransform.position.z+getInfo.z/2);

Debug.Log(x+“-”+z);

transform.position=Vector3(x,10,z);

}

function vScale(a:Transform):Vector3

{

var x:float= a.GetComponent(MeshFilter).mesh.bounds.size.x;

var y:float= a.GetComponent(MeshFilter).mesh.bounds.size.y;

var z:float= a.GetComponent(MeshFilter).mesh.bounds.size.z;

return Vector3(x,y,z);

}

Assets/Random.js(4,14): BCE0019: ‘Range’ is not a member of ‘Random’.