# Perlin Noise generation always returning zero

I am using noise and I can't get Perlin Noise working, only the Simplex Noise. So far I got this:

import noise

values = list()
string = str()
oct = 1

for y in range(20):
print("[", end = "")
for x in range(40):
i = round(noise.snoise2(x, y, octaves = oct), 5)
values.append(i)
if i > 0.3:
print("#", end = "")
string = string + "#"
else:
print("-", end = "")
string = string + "-"
print("]\n", end = "")


When I try to use Perlin noise instead, I get a value of zero for every x & y.

• – Simple coder Dec 12 '18 at 21:14