Niagara - how to get a random value in hlsl custom expression, how determinism works for random values in Niagara and linking that knowledge to Unreal Engine codebase so you can explore it further.
https://dev.epicgames.com/community/learning/tutorials/BdXJ/unreal-engine-niagara-random-in-hlsl-and-in-random-float-dynamic-input