Stream is being completely random

Hello! I have a pretty big issue that I am completely clueless as to how to fix.
My stream, where I’m pulling numbers from for my terrain generator, is providing completely random results despite using the same seed.
Here’s my most simple example:


And the log:

LogBlueprintUserMessages: [StreamAnalysis_BP_C_3] 823.244812
LogBlueprintUserMessages: [StreamAnalysis_BP_C_3] 644.048584
LogBlueprintUserMessages: [StreamAnalysis_BP_C_3] 834.267395
LogBlueprintUserMessages: [StreamAnalysis_BP_C_3] 240.333801
LogBlueprintUserMessages: [StreamAnalysis_BP_C_3] 381.437195
LogBlueprintUserMessages: [StreamAnalysis_BP_C_3] 846.004578
LogBlueprintUserMessages: [StreamAnalysis_BP_C_3] 334.916718
LogBlueprintUserMessages: [StreamAnalysis_BP_C_3] 964.830505
LogBlueprintUserMessages: [StreamAnalysis_BP_C_3] 214.340332
LogBlueprintUserMessages: [StreamAnalysis_BP_C_3] 120.985504
LogBlueprintUserMessages: [StreamAnalysis_BP_C_3] 85.384727


This was all printed using the same seed. If anyone has any clue, it would be greatly appreciated if you would share. Thanks!

This is completely reasonable and expected. If you want to generate one random number that you then can reuse, simply set that value in a variable. Every time the Random node is running you will get new random numbers.

1 Like

As far as I’m aware, a seed should provide the same result consistently, correct? I’m calling it in the editor, so maybe it has its own stream. Maybe resulting in different values until I restart.

Ah, I think I see what you mean, thank you.

1 Like

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