Weird Code Error Message

Here is the code I’m trying to compile:

var scare : Transform;

//create a random number between 1-0
private var randomNumber = Random.Range;

//activate trigger
function onTriggerEnter (other:Collider) {

	if (other.gameObject.tag == "Player"){
	
		//create weighted number
		var chance = randomNumber * Screwedometer.screwedLevel;
		
		var decider = chance / 15000;
		
		if (Random.Range <= decider){
			
			///stufftodogoeshere///
			
		}
	}
}

However, it doesn’t work and the error it is giving me is "Assets/Scripts/Trigger.js(13,43): BCE0051: Operator ‘*’ cannot be used with a left hand side of type ‘function(float, float): float’ and a right hand side of type ‘float’.
"

Any ideas?

Isn’t Range a function?

The usage should be a min and a max.

private var randomNumber = Random.Range(0, 1);

Same thing in your if statement.

Random.Range is a function call.
You should write:
randomNumber = Random.Range(0,1);