Seeds not working
clabe45 opened this issue · 0 comments
clabe45 commented
When I run the following code
func _ready():
randomize()
seed_hash = randi()
noise = preNoiseScript.SoftNoise.new(seed_hash)
print(seed_hash, " ", noise.simple_noise1d(0))
Here is sample output:
2855434610 -0.281791
3844575315 -0.281791
2527165008 -0.281791
It outputs the same number (-0.281791
) for simple_noise2d(0, 0)
too. However, results do vary with different seeds for perlin_noise2d
.