guys pls help me about my program.. my problem is i dont know how to use the 2D arrays.. pls guide my program how to random the student names and it will GROUP into three members of names. i have here a code but my problem is the the name will random into more than one, i dont know how to random it into once only and i dont know how to group it into three members of names,, pls help me guys.
heres my code..
srand( (unsigned)time(0) );
for(int j=9; j>1; j--)
{
int r = rand()%j;// produces a random # between 0 and j-1 inclusive.
// TODO: Swap elements j and r. Please work this part out
}
for (int j =0; j<=35; j++)
{
string Random;
Random = NameArray[rand()%36];
cout << Random << endl;
NameArray[j]=Random;
}