Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int min, max;
- int a, b;
- a=StrToInt(Edit1->Text);
- b=StrToInt(Edit2->Text);
- if(a>b)
- {
- min=b;
- max=a;
- }
- else
- {
- min=a;
- max=b;
- }
- srand(time(0));
- int tab[15];
- for(int i=0; i<15; i++)
- {
- tab[i]=rand()%(max-min+1)+min;
- }
- l1->Text=tab[0];
- l2->Text=tab[1];
- l3->Text=tab[2];
- l4->Text=tab[3];
- l5->Text=tab[4];
- l6->Text=tab[5];
- l7->Text=tab[6];
- l8->Text=tab[7];
- l9->Text=tab[8];
- l10->Text=tab[9];
- l11->Text=tab[10];
- l12->Text=tab[11];
- l13->Text=tab[12];
- l14->Text=tab[13];
- l15->Text=tab[14];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement