Burst fire

Im using this code at the moment:

function Shoot(seconds)
{
	if(Vector3.Distance(transform.position, target.position) < range)
	{
		if(seconds!=savedTime)
		{
		
		var bullet = Instantiate(bulletPrefab, transform.Find("enemySpawnPoint").transform.position,Quaternion.identity);										
												bullet.rigidbody.AddForce(transform.forward * 800);
		
		savedTime=seconds;
		
		}
	}	
}

And the point is to get my enemies to fire a burst of 50 shots for 1 second. Then have a break for 10 seconds. Then do same again. Is this code correct for that?
Can someone help me make a simple script for that?

I wouldnt try to fire 50 shots per second as you would be instantiating 50 items per second.

I would use raycast for such a high rate of fire.

You would need to use variables to count each shot and rest when at 50, triggering the delay period, using a timer and then switching back into firing mode.

You can use Time.time to get time into a variable and then yourvariable - Time.time gives you the expired period. If this exceeds your delay period it can then switch etc.