Is it possible to base RNG off of a single/series of predetermined seeds?

Hi All,

My goal is to pass a seed to various clients and use that seed in the rng functions to achieve parity across multiple clients.

Here is the process im envisioning.

  1. players submit turn to a server.
  2. server processes turn and returns turn file and an “rng seed”
  3. multiple clients receive turn and base actions off the “rng seed”
  4. desired outcome - all turns are the same across multiple clients.

Much appreciated!

Let me know if I need to clarify anything!

Hey there @Jaak3L! Welcome to the community! So it sounds like what you’d want to do is work with Random Float from Stream. Providing the same seed should output the same number across all clients. So I’d lean towards making a Server only event that sets the seed, then a RepNotify for when the actual variable is set and then send that to all clients.

Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.

1 Like

Perfect Thanks!!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.