I posted a simplified version of the C port to the site: http://rosettacode.org/wiki/Image_Noise#D As for line count, this is tied with OCaml for shortest implementation on the page, and is IMO the most readable of them all!