I have a variable Random Stream and i want to generate random integer from that stream, but each time it gives different result.
Shouldn’t it be the same result each time? Why is it changing?
I have a variable Random Stream and i want to generate random integer from that stream, but each time it gives different result.
Oh yeah, your method is working, but do I have to do this each time? I tried to set it in begin play once and don’t bother with it, but it keeps changing afterwards.
I think you have to, I tested with the initial seed and it’s not working for me too. Every initial seed gives 2,6,9,9…
When you set it in begin play it will give you the values you expect, but later if you want to get the same values again you have to set the seed again.
So you only need one value ? this should work for that.
You can make it simplier by putting the code inside a Blueprint Function Library.
So you just need to code it one time and use the resulting Function globally, everywhere…