Today I wrote a noise generator algorithm from scratch. I had this idea to use a microprocessor as a random number generator and pipe it into an 8-bit dac; would probably sound nasty, especially if I could vary the clock rate, and maybe pipe the output signal through a slew limiter for use as a modulation signal. So I had to write a routine to generate the numbers because the gnu libc rnd() would obviously be unavailable on a little microcontroller. We'll see if I actually follow through with the hardware end of the idea. Unfortunately I can't do that at my desk pretending to be doing work :)
http://www.analogbubblebath.net/~morganohm/shit/clfrnoise.c