Implementing Simplex Noise

There is a very good implementation of tileable Perlin noise in C++ here:

Check it out and integrate it into your code. Use is free by GNU General Public License, so try it and have fun!