Random range Instantiation not working

using UnityEngine;
using System.Collections;

public class SpawnScript : MonoBehaviour {
public GameObject meteor;
float spawnThreshold = 100;

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {

	if(Random.Range (0, spawnThreshold)<=1){
		Instantiate(meteor, new Vector3(11, Random.Range(-3, 6.5), 0));
	}


}

}
This is the code i’ve been using to instantiate a meteor prefab. However, when I try to run it Unity complains with the error “UnityEngine.Random.Range(float, float) has some invalid arguments”. I’m not sure whats wrong with it, as I’m quite new to this. Also, if there is a way to spawn a meteor every second or frequently, then please do say:). Any help would be very much appreciated.

You missed the ‘f’ (for float in c#) at line no 10.

Instantiate(meteor, new Vector3(11, Random.Range(-3, 6.5f), 0));

if there is a way to spawn a meteor every second or frequently…
for that try this >>> Unity - Scripting API: MonoBehaviour.Invoke

you can do something like this to generate object frequently :

public var enemy3Prefab : GameObject;

private var x : float;
private var y : float;
private var z : float;

function Start () {
    if(!IsInvoking("CreateRandomShip"))  
		InvokeRepeating("CreateRandomShip",0.01f,1.0f);
}

function CreateRandomShip()
{
	x = Random.Range(-3.00f , 3.00f);
	z = -6.72f;
	y = 8.0f;
	enemy3Prefab.transform.position = new Vector3(x , y , z);	
	Instantiate(enemy3Prefab,enemy3Prefab.transform.position,enemy3Prefab.transform.rotation);
}

Thanks.