title: Move button randomly on hover: Javascript
body: <p>I have a button that I want to move randomly on hover. I want it to be able to move anywhere not pseudorandom, but truly random. The code I have only made the button go to the bottom right.</p>
  <p>Also, if possible, if you could make an animation to make the animation smooth, that would be greatly appreciated.</p>
  <pre class="lang-js prettyprint-override"><code>document.addEventListener(&quot;mouseover&quot;, function (event) {
      x = event.pageX;
      y = event.pageY;
      div.style.left = x + 35 + &quot;px&quot;;
      div.style.top = y + 35 + &quot;px&quot;;
  });
  </code></pre>