Question by
HeresJohnny123 · Mar 29, 2018 at 05:28 PM ·
randomrandom.range
Random value at awake?
Hey, So i just realized that random.range always gives the same value when done during awake. This is a bit problematic since i have a usage for it that requires it to be random every time at start of said project.
As far as I've been able to find out now you can base it on :
Random.seed = (int)System.DateTime.Now.Ticks;
I'd like if there was an alternate option to this since as far as i know this relies soley on the users system time.
I've also read some about: https://docs.unity3d.com/ScriptReference/Random-state.html
But to be honest im not sure how or if this would solve my problem.
Any ideas are welcome, thanks
Comment