perlin noise unity

C#
Mathf.PerlinNoise(x, y); //Return value is between 0.0 and 1.0
Source

Also in C#: