@daizhuo wrote:
List<int> intnum = new List<int>(); for(int i = 0;i < 10;i++) { Random rnd = new Random(); int num = rnd.Next(0, 2); if(num == 0) { intnum.Add(num); } } A = intnum;
In upon code, I can't get random numbers, why?
I get all the same numbers!
Posts: 3
Participants: 2