Is Random deterministic between platforms?

Godot Version

4.x

Question

I’m making an online game with a zelda-like dungeon layout. Instead of sending the layout to each player, I thought about sending a randomizer seed and just running the level generator on each client. I did some testing on the machines that I have available, but it’s far from exhaustive proof. Has anyone else done something similar or know for sure if a seeded randomizer will always yield the same set of numbers no matter the system it’s running on?

I could be wrong but I’m pretty sure that’s the entire point of seeds. Otherwise it would be pretty useless in things like Minecraft and Terraria.

4 Likes

Yes, use a RandomNumberGenerator object to better control what is advancing your RNG state. To a computer, no equation is truly random, RNG is deterministic given the same initial seed.

1 Like