Page 1 of 1
RandomiseNextEntry() producing same results
Posted: Mon Mar 08, 2021 8:13 pm
by Keeko
When I use RandomiseNextEntry() in the script field, the responses are random, but they are in the same order every time I start the game. It's like the seed hasn't been set.
Re: RandomiseNextEntry() producing same results
Posted: Mon Mar 08, 2021 8:46 pm
by Tony Li
Hi,
RandomizeNextEntry() calls UnityEngine.Random.Range().
Unity's Random class should set a random seed based on the system clock when play mode starts.
Something in your project may be setting it to the same seed every time. You can do a global search in your code editor for "Random.InitState".