Description

When using a Random Stream variable to populate a Random Integer in Range from Stream, the Initial Seed value has no affect on the random integer selected.

Workaround:
Using a Seed Random Stream or Set Random Stream Seed (after EventBeginPlay in the blueprint) will

Steps to Reproduce
  1. Open UE4Editor (any project)
  2. Add blueprint based on actor (ActorBP)
  3. Create Random Stream variable (StremVar)
  4. Select StreamVar and expand Default Value->Initial Seed in Details panel
  5. Set Initial Seed to 55
  6. Setup blueprint as shown in screenshot (NewVar0 is RandomStream node)
  7. PIE and note the values printed on screen
  8. In ActorBP, change the Initial Seed value to 17
  9. PIE

Result:
The printed values are the same after changing the initial seed value of the Random Stream node

Expected:
1) Different initial seeds provide different stream results
or
2) Initial Seed should not be visible in editor if it's not meant to affect the Stream

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.16.34.17.24.18
Target Fix4.24
Fix Commit9147681
Main Commit9318896
Release Commit9552237
CreatedNov 16, 2017
ResolvedSep 26, 2019
UpdatedDec 14, 2019
View Jira Issue