title: Trying to build an array that fills each position with a dice roll
body: <p>Here is my current code:</p>
  <pre><code>const diceRoll = Math.trunc(Math.random() * 6) + 1;
  const diceRollArr = Array.from ({length: 4}, (_, i) =&gt; diceRoll[i]);
  
  console.log(diceRollArr); //Returns: (4)[undefined, undefined, undefined, undefined]
  </code></pre>
  <p>Can't wrap my head around what I'm missing. If I do:</p>
  <pre><code>const diceRoll = Math.trunc(Math.random() * 6) + 1;
      const diceRollArr = Array.from ({length: 4}, (_, i) =&gt; diceRoll);
  </code></pre>
  <p>It will generate the same dice roll for the given array length, so I need a way to do a dice roll for each index position. Any help would be greatly appreciated, thanks!</p>