I’m using Random to make a pseudorandomized dungeon crawler with unique weapon generation. It all works fine on the server, but once I ask it to generate a weapon locally, it gives completely different results every time.
The seed being created and used for random size.
prints given
I’m aware of an issue with inconsistancy of generation with negative integers, but even after rounding and giving the absolute value of the resulting seed, it still does this.
To clarify, I’m not really asking for a direct answer on how to fix this. Help would be nice, but I’m moreso asking for knowledge that this issue even exists.
you can use:
table.sort(yourtablehere, function(a,b)
return a.Name < b.Name
end)
this will sort the table of instances by name, making their loading order consistent