I need help it keeps on saying The name 'i' does not exist in the current context on line 19 21.

 using UnityEngine
using UnityEngine;

public class BlockSpawner : MonoBehaviour
{
    public Transform[] spawnPoints;

    public GameObject blockprefab;

    // Start is called before the first frame update
    void Start()
    {
      
        int randomIndex=Random.Range(0, spawnPoints.Length);
      
        for (int i = 0; i < spawnPoints.Length; i++);
        {
            if (randomIndex != i) //it says The name 'i' does not exist in the current context here and got confused
            {
                  Instantiate(blockprefab, spawnPoints[I]); //here to
            }
        }
    }

}

[/I]

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: Using code tags properly

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

How to understand compiler and other errors and even fix them yourself:

Ok

Without code tags, telling us what line the error is on makes things difficult. Don’t expect that we’ll count the lines.
However, simply put, your error is on the for declaration. Look closely at the end of that line and you’ll notice you have something extra.

sorry I’m new to here so ill add tags

I dont know how to edit threads?

nvm