title: Need To Generate Random Number Between 1 - 3 And Need To Set 3 Variables
body: <p>I'm creating a game with HTML &amp; CSS using DOMS to manipulate the button values/text on the HTML page, to match the values in the JavaScript file.</p>
  
  <p>So there are 3 numbers generated, and they are each assigned to 3 separate buttons on the HTML.</p>
  
  <p>I want to randomize which value is assigned to each button so that the correct inputs aren't in the same button position every time.</p>
  
  <p>I was thinking to generate a random number between 1 &amp; 3 and then return the value and find the other 2 numbers for example </p>
  
  <p>If the random number was 2, the function would determine that it needs to assign the other values to button 1 &amp; 3.</p>
  
  <pre><code>
  //Define  Min Number Range &amp; Main Number &amp; Random Number
  
  var Min = 10;
  var Max = 40;
  
  var S1 = Math.floor(Math.random() * (Max - Min + 1) + Min);
  var S2 = Math.floor(Math.random() * (Max - Min + 1) + Min);
  
  var MainNumber = S1 + S2;
  var RandomNumber = Math.floor(Math.random() * (Max - Min + 1) + Min);
  
  console.log('S1 = ', S1);
  console.log('S2 = ', S2);
  console.log('Random = ', RandomNumber);
  console.log('Main = ', MainNumber);
  
  //Assign Numbers To Elements On HTML
  
  //String Conv
  
  document.getElementById("p1").innerHTML = S1;
  document.getElementById("p2").innerHTML = S2;
  document.getElementById("p3").innerHTML = RandomNumber;
  document.getElementById("p4").innerHTML = MainNumber;
  
  document.getElementById("p1").value = S1;
  document.getElementById("p2").value = S2;
  document.getElementById("p3").value = RandomNumber;
  
  
  var VMin = 1
  var VMax = 3
  
  var VS1 = Math.floor(Math.random() * (VMax - VMin + 1) + VMin);
  
  </code></pre>
  
  <p>I would expect to be able to return a random number between 1 - 3 and find the 2 missing values example random number is 1, function would be able to determine that it needs to assign values to 2 &amp; 3.</p>