title: jQuery click function inside click function
body: <p>First of all, this is my first question here, so I want to Apologize in advance if it is repeated.</p>
  
  <p>I have a piece of code like this:</p>
  
  <pre><code>$("#one").click(function(){ 
      randomNumber = Math.floor(Math.random()*6)+1;
      $("#two").click(function(event){
          console.log(randomNumber);
      });
  });
  </code></pre>
  
  <p>First time everything is working fine, but second time i executed that It shows the first random number and then the second, etc.</p>