title: ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection
body: <p>I was creating a Quiz game on Unity and this ArgumentOutOfRangeException keeps on showing and I can't start the game since I'm a beginner can you guys help me. These 3 Lines of code are the reasons idk how to fix it</p>
  <pre><code>private void SelectQuestion()
  {
      int val = UnityEngine.Random.Range(0, questions.Count);
      selectedQuestion = questions[val];
  
      quizUI.SetQuestion(selectedQuestion);
  
      questions.RemoveAt(val);
  }
  
  public void StartGame(int index)
  {
      scoreCount = 0;
      currentTime = timeLimit;
      lifeRemaining = 3;
  
      questions = quizData[index].questions;
      
  
      SelectQuestion();
      gameStatus = GameStatus.Playing;
  }
  
  private void Start()
  {
      for(int i = 0; i &lt; options.Count; i++)
      {
          Button localBtn = options[i];
          localBtn.onClick.AddListener(() =&gt; OnClick(localBtn));
      }
  
      for (int i = 0; i &lt; uiButtons.Count; i++)
      {
          Button localBtn = uiButtons[i];
          localBtn.onClick.AddListener(() =&gt; OnClick(localBtn));
      }
  
   
  }
  </code></pre>