Random float in range from stream is different across client and server

In listen server

I’m generating a 2d map that I need to be the same on the client and the server. I expected using a seed would cause deterministic results across clients but it doesn’t. Currently the results are deterministic in the sense that the server always generates the same number, and the client always generates the same number, but the server and the clients number are always different.

Thanks in advance! :slight_smile:

And this is how I trigger it.

Should probably just have the server make the random number and replicate it back to clients. The seed may be deterministic insofar as it limits the range for the random number, but it is stll random. Even if you could trick them into agreeing, the server should be the one with authority.

1 Like