Godot Version
4.7.1
Question
I have a script which generates random chunk for a level. The script is attached to a node which helps position the level in the world. The nodes are duplicated around the chunk the player is currently in to create infinite generation.
All the chunks however are identical. I assumed that the random number generator would produce random numbers each time but I've looked at other posts and have found some people with similar problems, i think it might be somethingwith the clones sharing the same random number generator? The fix for that was to create a new random number generator object, which i did but it changed absolutely nothing. Another fix was to add rng.randomize() functions, i have spammed them all over the code but it does nothing. I think maybe because randomize() is time dependant and the nodes generate the level as soon as they are created they therefore call randomize() at the same time and so have the same random number seed to fix that i tried randomizing it multiple times depending on the chunk number or making new random number generators depending on the chunk number but it still changes nothing.
I’ve tried fixing this for literally hours, surely there is a way to make a random number generator work like its supposed to easily?
Here’s an image if it helps, the one at the top right did actually generate differently but i dont know why and a chunk shouldnt have even generated there in the first place, but i’ll fix that after this.
