title: The array is not Shuffling what is the mistake in the Code?
body: <pre><code>  function shuffleArray() {
      let array=characters
      for (let i = array.length - 1; i &gt; 0; i--) {
        const j = Math.floor(Math.random() * (i + 1));
        const temp = array[i];
        array[i] = array[j];
        array[j] = temp;
      }
      setCharacters(array)
    }
  </code></pre>
  <p>The array is not shuffling and not triggering an re-render and the it's an array of images</p>