Using Random.Range() not working

I think I’m going crazy here guys.

This always logs 0

 int RandomRange = Random.Range (0, 5);
 Debug.Log (RandomRange);

This always logs 4

 int RandomRange = Random.Range (1, 5);
 Debug.Log (RandomRange);

Issue seems to have something to do with running Random.Range() inside the Start() function.
If I run it inside Update() or Awake() works fine

Race condition with RandomRange being seeded perhaps, if you need to use it there you could seed it yourself using the system time or something.

Ya that’s the only thing I can think of. Using it in Awake is ok in this situation. Just going to do that. Thanks for the reply Strategos

I ran into the same issue when trying to run Random.Range off inherited static classes, essentially Start would superseed the base classes and basically just become nonsensical, in the end i had to call it from a game manager to populate the fields.