0

Random array generate in c#

1000 elements

13th Sep 2020, 10:05 AM
Ashish ohri
Ashish ohri - avatar
3 ответов
+ 2
Correction to hossein B code. int[] array = new int[1000]; Random rand = new Random(); for(int i=0;i<1000;i++) {array[i]= rand.Next();}
14th Sep 2020, 10:19 AM
Calviղ
Calviղ - avatar
+ 1
Please edit your post, as it is now, it is unclear whether it was a question or not 👍
13th Sep 2020, 10:30 AM
Ipang
+ 1
Im agree with Ipang But i think i can guess what you want Int[] array = new int[1000]; for(int i ;i<1000;i++) {array[i]= random.Next();}
13th Sep 2020, 3:34 PM
hossein B
hossein B - avatar