Im writing in C# and I currently have a class called allocation that has random numbers like,
obviously using the Random class. The random numbers are part of a method called Allocate.
In my main method i have created 2 instances of the class
However the random numbers are the same for each instance when i need them to be different. How do i go about sorting this?
Thankyou
Code:
students[0].choiceTwo = Randnum.Next(15);
In my main method i have created 2 instances of the class
Code:
Allocation first = new Allocation(); Allocation second = new Allocation(); first.Allocate(); second.Allocate();
Thankyou
Comment