BCE0044: Expecting (, found 'PlayRandom'.

I am currently messing around with Unity and making some random things, right now I am attempting to make a bubble blower weapon.
I grabbed a bit of code here and there and put together this script that fires the bubbles and plays random bubble sounds when firing (currently 2) from the bubble blower model.
Unfortunately, I get the error “BCE0044: Expecting (, found ‘PlayRandom’” when looking in the console.
I seriously do not know where I’ve messed up, but here is my code:

#pragma strict
 
var bulletPrefab : Transform;
var player : GameObject;
var force : float = 2000;
var shootForce : float = 1000;
 
function Update () {
    if(Input.GetMouseButtonDown(0)){
         //fire bullet   
 
         fire();
 
         //audio clip
         var sounds: AudioClip[];

    function PlayRandom();{ 
    if (audio.isPlaying) return;
    audio.clip = sounds[Random.Range(0,sounds.length)];
    audio.Play();
}


    }
}
 
function fire(){
    var instanceBullet = Instantiate(bulletPrefab,transform.position,Quaternion.identity);
        instanceBullet.rigidbody.AddForce(transform.forward*shootForce);
}

If anyone could locate it, please let me know.

You appear to have pasted your PlayRandom function inside your Update function. Move this function to the end of the script. Note that after PlayRandom() you have a semi-colon, which needs to be removed from the function declaration.

(And note that there are at least 9 pages of questions/answers about bce0044.)

try removing the PlayRandom function from the update function:

    function Update () {
		if(Input.GetMouseButtonDown(0)){
			//fire bullet

			fire();

			//audio clip
			PlayRandom();
		}
    }
    
    function PlayRandom(){
		if (audio.isPlaying) return;
		var sounds: AudioClip[];
		audio.clip = sounds[Random.Range(0,sounds.length)];
		audio.Play();
    }

Thank you both for your quick answers, I fixed the problem and now I can move onto other things in my game. I would vote up your answers but I can’t right now.