random velocity range

I’m making a 2.5d version of invaders, I’m trying to make the enemy bullets go at a random velocity towards my ship. the code I have now is

function AlienShoot(){
	while(CanShoot1){
		var clone : Rigidbody;
		yield WaitForSeconds (Random.Range(5.0,10.0));
		clone = Instantiate(projectile1, transform.position, transform.rotation);
		**clone.velocity = transform.TransformDirection (Vector3(Random.Range(1, 3) * -15)) ;**
	}
}

and it gives me the error “Assets/Shoooooooot.js(22,79): BCE0024: The type ‘UnityEngine.Vector3’ does not have a visible constructor that matches the argument list ‘(int)’.”

Any idea how I could fix this? Thanks in advance.

Vector3(Random.Range(1,3) * -15) isn’t a vector3

Try something like

Vector3(Random.Range(1,3) * -15 , 0, 0) ;

Vector3(x,y,z)

Have you tried to create the random numbers outside the function then bring them in.
Maybe change the int to floats and see if you get the same error but listed as floats.