# Random Stream Initial Seed in GameMode changes everytime game start?

**URL:** <https://forums.unrealengine.com/t/random-stream-initial-seed-in-gamemode-changes-everytime-game-start/323941>\
**Category:** World Creation\
**Tags:** unreal-engine, bug-report, UE4, Blueprint, question\
**Created:** [July 3, 2015, 8:07am UTC](https://forums.unrealengine.com/t/random-stream-initial-seed-in-gamemode-changes-everytime-game-start/323941 "2015-07-03T08:07:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f27d56e11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f27d56e11](https://forums.unrealengine.com/u/anonymous_user_f27d56e11)\
**Post date:** [July 3, 2015, 8:07am UTC](https://forums.unrealengine.com/t/random-stream-initial-seed-in-gamemode-changes-everytime-game-start/323941/1 "2015-07-03T08:07:41Z")

</div>

So here I tried to put default value for stream in GameMode, and printed it on screen

When I played game, initial seed changes for every time, and then I tested it outside GameMode and seed didn’t change for every time I play game. Is it bug? or just intended purpose?

 ![48915-report.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/7/177f80dc400e9143cd298f81e223eecee1c57c6d.jpeg)

There I put 0 as initial seed, but it showed

19506, 5087, 20586, etc etc everytime I started game

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [July 6, 2015, 8:29pm UTC](https://forums.unrealengine.com/t/random-stream-initial-seed-in-gamemode-changes-everytime-game-start/323941/2 "2015-07-06T20:29:34Z")

</div>

Hi Andi,

Thanks for report! This may be intentional, as Initial Seed value of Random Streams are reset for every instance of a BP in level, but GameMode doesn’t run on an instance in same way and may be resetting struct values at unusual times. I was unable to confirm if this is intentional, however, so I’ve written up a bug report (UE-18216). I’ll let you know when I get any feedback on it.

In meantime, a simple solution is to add a Set Random Stream Seed node after Begin Play node and before Print Node, and set that value as default Initial Seed:

 ![49313-setrandomstreamseed.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/7/137750d8158f3bc167f457abb62430fa3c8ba1b2.png)

Hope that helps!
