Skip to content

Instantly share code, notes, and snippets.

@JacobBennett
Last active May 6, 2017 05:23
Show Gist options
  • Save JacobBennett/fc43e4c9dc21ac1028403e48fdcbf19c to your computer and use it in GitHub Desktop.
Save JacobBennett/fc43e4c9dc21ac1028403e48fdcbf19c to your computer and use it in GitHub Desktop.
Code Challenge

Code Challenge Premise

Find a point (x,y) on the permiter of a rectangle

the rectangle origin starts at some arbitrary x, y and is maxX wide and maxY high.


Solutions can be written in any lang, although I wrote mine in JS

Click here for my solution

@rankogit
Copy link

rankogit commented May 6, 2017

https://gist.github.com/rankogit/4cbdc28c391452c1d61f09998b0f264a

Generates a random point on perimeter of a rectangle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment