Quantcast
Channel: Answers for "Random.Range always generates the exact same numbers in Start()"
Browsing latest articles
Browse All 4 View Live

Answer by Graham-Dunnett

Come on @TommyZakh... Spending a few seconds doing some reading will help you out: http://docs.unity3d.com/ScriptReference/Random-seed.html :-)

View Article



Answer by Arycama

Before calling your Random functions, set the Random.Seed to a number that isn't likely to be the same twice in a row. An easy way to do this would be: Random.seed = System.DateTime.Now.Millisecond;...

View Article
Browsing latest articles
Browse All 4 View Live


Latest Images