Hello.I'm a begginer in C++.
I'm trying to make an algorithm that will shuffle randomly the elements of a
matrix[4][3],but i don't know how to start...
Can someone help me with the algorithm ?
I think is something like this but i'm not sure :
bool test=false;
int x;
x=rand()%4;
while(test=false)
{if(x==0)
{...
test=true;}
if(x==1)
{...
test=true;}
if(x==2)
{...
test=true;}
if(x==3)
{...
test=true;}
}
... -> mean that i don't know what to write there