Skip to content

Instantly share code, notes, and snippets.

View codingMASTER398's full-sized avatar
👌
New project: Procrastination... or is it?

coding398 codingMASTER398

👌
New project: Procrastination... or is it?
View GitHub Profile
function getRandomInt(min, max) {
return min + Math.floor(Math.random() * (max - min + 1));
}
@conorbuck
conorbuck / angle-between-points.js
Created May 5, 2012 22:51
JavaScript: Find the angle between two points
var p1 = {
x: 20,
y: 20
};
var p2 = {
x: 40,
y: 40
};