Hi, Being a learner. I am here to participate just like other Mobile Development Blogs to enhance my knowledge regarding Unity 3D & Android collaboration & I would like to Improve my code using threads, so the 1000000 random number generation runs without spoiling performance. which has become difficult to debug. I hope any tech developer help me in resolving this issue.
Code:class RandomGenerator : MonoBehaviour { public float[] randomList; void Start() { randomList = new float[1000000]; } void Generate() { System.Random rnd = new System.Random(); for(int i=0;i<randomList.Length;i++) randomList[i] = (float)rnd.NextDouble(); } }