xxxxxxxxxx
-- math.noise() Is math.random but lerped to be nice and smooth.
-- It can be used to make terrain and different really cool stuff.
-- Its important to know that it only takes in decimal numbers.
-- math.noise() Ranges from -1 to 1.
local freq, amp = 1/10, 2 -- Frequency and Amplitude
for x = -10, 10 do
print(math.noise(x/freq)*amp) -- Print the noise
end