title: can you not edit a double in a function with a argument?
body: <p>What is really wrong with this?</p>
  
  <pre><code>    public void changeElement(String isAdd, double Element, int timesBy, int lowCap) {
      ran = Math.floor(Math.random()*timesBy)+lowCap;
      if(isAdd == "+"){
          if((Element + ran) &gt; 100){
              ran -= ((Element + ran)-100);
          };
          Element += ran;
      }else{
          if((Element - ran) &lt; 0){
              ran -= (ran - Element); 
          };
          Element -= ran;
      };
      Elementi = (int)Element;
      ranI = (int)ran;
  
  }
  </code></pre>
  
  <p>I know the math works because i changed the 'Element' tag to the double i have been using so why does it not change the true double like its meant to.</p>