Skip to content

Instantly share code, notes, and snippets.

@thams017
Last active March 4, 2016 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thams017/c07dbd4846b390075d94 to your computer and use it in GitHub Desktop.
Save thams017/c07dbd4846b390075d94 to your computer and use it in GitHub Desktop.
To Randomize Dot
function randDot() {
var rn1 = Math.random() * 300;
var left = parseInt(rn1);
var rn2 = Math.random() * 200;
var top = parseInt(rn2);
$(".dot").css("left", left);
$(".dot").css("top", top);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment