Perlin noise tutorials ?

I’ve been looking into websites explaining perlin noise. I understand the basic concept of how it works but i have no idea how to implement it into a script. Are there any tutorials or forums were they explain how to trite it in javascript? I want to make a terrain generator with perlin noise.

http://unity3d.com/support/resources/example-projects/procedural-examples.html

It’s the lightning bolts example. Each particles is translated by 3 perlin noises each frames.

I’m working in a terrain generator too. Take a look at my question (I solved it myself). I’m using planes to generate the terrain, but I think it is very easy to apply to any kind of geometry (like cubes).

You can even make it generate planes (or cubes) infinitely in all directions and have a consistent Perlin noise affecting all the terrain.

The Perlin function is the same found in the Unity Procedural Examples, cited by @Bérenger Mantoue.