0
function, methord
Private int[] lotto5() { Random rdm=new Random(); For(int a=0; a<5;a++) { do { Thread.Sleep(25); l=rdm.Next(1,70); }while (myArray.contians(l)); myArray[a]=l; How to return This methord.
3 ответов
0
return myArray;
where is myArray declared
0
https://code.sololearn.com/cCY8meh4WdMi
I wrote some example code based on your method.
Notice
I declared
int [] internal_array = new int[5] ;
int l;
For is not with a capital F
Thread is in System.Threading and not in System.Threading.Tasks
Contains is with a capital C
Contains is writen with ai not ia
0
thanks for advice sir ,,