Accessing particle info?

Hello. I am trying to manipulate parts of a particle emitter through scripting. When I try to implement the script below, I get an error about the particle emitter not being defined. What do I need to change?

function Start(){
           ParticleEmitter.minEnergy=float:Random.Range(0,1);
    }

Thanks

Basically, your syntax and spelling is all wrong. You should be using-

particleEmitter.minEnergy = Random.Range(0, 1);

ParticleEmitter and particleEmitter are two different things- ParticleEmitter is refering to the class, wheras particleEmitter is an automatic lookup which returns a reference to the Particle Emitter which is connected to that object. It returns null if there is none, so look out for that.