Help with Spawning Waves script

Hello
I’m totally beginner, sorry. I found very usefull Game Controller script here Boundaries, Hazards and Enemies - Unity Learn
But i don’t know, how to change hazards spawner random.range to normal spawning (1,2,3,4,5,6,7,8,9,10) :face_with_spiral_eyes:

using UnityEngine;
using System.Collections;

public class Done_GameControllerDemo2 : MonoBehaviour
{
	public GameObject[] hazards;
	public Vector3 spawnValues;
	public int hazardCount;
	public float spawnWait;
	public float startWait;
	public float waveWait;
	
	void Start ()
	{
		StartCoroutine (SpawnWaves ());
	}
	
	IEnumerator SpawnWaves ()
	{
		yield return new WaitForSeconds (startWait);
		while (true)
		{
			for (int i = 0; i < hazardCount; i++)
			{
				GameObject hazard = hazards [Random.Range (0, hazards.Length)];
				Vector3 spawnPosition = new Vector3 (Random.Range (-spawnValues.x, spawnValues.x), spawnValues.y, spawnValues.z);
				Quaternion spawnRotation = Quaternion.identity;
				Instantiate (hazard, spawnPosition, spawnRotation);
				yield return new WaitForSeconds (spawnWait);
			}
			yield return new WaitForSeconds (waveWait);
		}
	}
}

Hey,
Is it too simple? (not for me)

Please!!!

p.s. You can try my game in Android www.flyshout.com