Here's a simple brute-force algorithm to generate Pythagorean triplets.
Written in Flaming Thunder, works in FT Notepad and the free version.