Hello, how do I use the rand() function with the range Y ∈ [11, height + 9] and X ∈ [11, width-1].
srand (time(NULL));
y=rand() % ((altura+9)-11) + 11;
x=rand() % ((largura-1)-11) + 11;
gotoXY(x, y);
cout<<"o";
Is it like this...
asked by
03.08.2018 / 23:26