What is seed in math.noise()

The topic name is the question

Could anyone explain it clearly?

A Seed is a random number to make a certain noise map

Take for Instance Minecraft: When u create a new world it has a certain seed which is used,when youus theame seed you would get the same world

1 Like

I don’t play minecraft can you send any other example please?

It is basically a pseudorandom number generator that generates a smooth value (almost always) between -1 and 1 from up to 3 numbers you can parse as arguments. But rather than returning completely random numbers, it will always return the same if you use the same arguments and it results a smooth “rolling hill” like shape if you put it on a graph.

It’s most frequently used for generating terrain as it avoids having to store all the data. For example math.noise(0.1) will always return the same number.

1 Like

There is no seed for math.noise. Given the same inputs, it always returns the same output. In every game, forever.

For example, math.noise(1.158, 5.723) will always return 0.48397532105446 and math.noise(1.158, 6) will always return 0.15315161645412 .

— math | Roblox Creator Documentation

While there is no specific seed argument in math.noise, you can specify a seed in the third argument (Assuming you are generating 2D perlin noise).

The third argument however, was actually meant to be used for generating 3D perlin noise, but you can still use it as a seed argument.

A seed in this case, is a number that determines the sequence of random numbers generated by math.noise.

1 Like