void GenBlocks(){
int currblock;
int currXline;
int currZline;
int randID;
for(currblock = 0,currXline = 1,currZline = 1;currblock < blockAM;currblock++,currXline++){
randID = rand() % 2 + 1;
if(currXline > pierw(blockAM)){
currXline = 1;
currZline++;
}
block[currblock].x = currXline*3;
block[currblock].y = 0;
block[currblock].z = currZline*3;
block[currblock].id = randID;
}
}
But every time when I run the application, it generates the same!
Thanks in advance.








