c sharp perlin noise mathf code example Example: perlin noise unity Mathf.PerlinNoise(x, y); //Return value is between 0.0 and 1.0