title: Can you make this code choose a random color before betting?
body: <pre><code>// CONFIG ////////////////
  var initialBetAmount = 2;
  
  var mode = 'martingale'; // can be 'martingale' or 'anti-martingale' (WAT? https://en.wikipedia.org/wiki/Martingale_(betting_sys.. )
  
  var betColor = 'black'; // can be 'red' or 'black'
  
  //////////////////////////
  
  function tick() {
      var a = getStatus();
      if (a !== lastStatus &amp;&amp; "unknown" !== a) {
          switch (a) {
              case "waiting":
                  bet();
                  break;
              case "rolled":
                  rolled()
          }
          lastStatus = a, printInfo()
      }
  }
  
  function checkBalance() {
      return getBalance() - 1
  }
  
  function getColor(a) {
      return 0 == a ? "green" : a &gt;= 1 &amp;&amp; 7 &gt;= a ? "red" : "black"
  }
  
  function wonLastRoll() {
      return lastBetColor ? lastRollColor === lastBetColor : null
  }
  var currentBetAmount = initialBetAmount,
      currentRollNumber = 1,
      lastStatus, lastBetColor, lastRollColor, $balance = $("#balance"),
      $betAmountInput = $("#betAmount"),
      $statusBar = $(".progress #banner"),
      $redButton = $("#panel1-7 .betButton"),
      $blackButton = $("#panel8-14 .betButton"),
      refreshIntervalId = setInterval(tick, 500);
  </code></pre>
  
  <p>This is the code. The code works with csgodouble.com and bets on only one color and i want it to choose a random one instead. red/black</p>