It's pretty idiot proof and self explanatory; it generates Pythagorean triples, what more can you want? From the classic 3-4-5 triangle to the rather uncommonly known 200-9999-10001 triangle, every triple has a unique set of 2 integers associated with it. See inside the code to see the formulas.
Umm.. Pythagoras, I guess. Oh, there are a few bugs... Oh and the 3Blue1Brown Video which inspired this: https://www.youtube.com/watch?v=QJYmyhnaaek