Seeding perlin functions

Simple question. Is there a way to seed the Mathf.PerlinNoise function?

I don’t think so but it’s easy. Manual says: “The same coordinates will always return the same sample value but the plane is essentially infinite so it is easy to avoid repetition by choosing a random area to sample from.” as robertu says too.

The code in the manual, you would set xOrg and yOrg to your ‘seed’. Here’s a way to randomize that.

var xOrg: float = Random.value;
var yOrg: float =  Random.value;
var xCoord = xOrg + x / noiseTex.width * scale;
var yCoord = yOrg + y / noiseTex.height * scale;
var sample = Mathf.PerlinNoise(xCoord, yCoord);