Announcement

Collapse
No announcement yet.

Random Stream Seed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Random Stream Seed

    So the seeds for random streams are just a series of numbers, does that mean that if I randomly generate my levels with a random stream and my seeds are 4 digits long there are only 9999 possible levels that can be generated? This seems like a really bad way to handle seeding as far as I can tell

    #2
    The seed doesn't define the range, just starting point.

    Limited results are only generated if you use the RandRange() & FRandRange() functions.

    Blueprint:


    or C++ "

    Code:
    FRandomStream RandomNumberGenerator;
    
    RandomNumberGenerator.Initialize(1234);
    
    float ValueWithinRange = RandomNumberGenerator.FRandRange(0.0f, 9999.0f);
    Attached Files
    Last edited by Kris; 08-29-2015, 07:10 PM.
    Rule#21: Be polite, be professional, but have a plan to kill everyone you meet.

    Comment

    Working...
    X