C functions generating perlin noise. Originally by Ken Perlin, edited by me.