- Home /
Question by
unity_8B67E8596512A9C9EA10 · Oct 30, 2021 at 11:06 AM ·
c#unity 2drandom
Does Random.initState(seed) affects all scripts?
My question is when using Random.initState(seed), does it initialize all the scripts or only the monobehaviour where I used it?
Comment
Best Answer
Answer by Llama_w_2Ls · Oct 30, 2021 at 12:07 PM
Yes, that affects all cases where you use the Random class, since random is a static class, and therefore only has 'one instance' of the underlying System.Random object used to generate random numbers.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
To see chosen random text UI Unity,To Access UI text 0 Answers
Random movement script not working C# 2 Answers