Nu stiu ce nu este in regula cu codul?Ma poate ajuta cineva?
#include
using namespace std;
int main(){
srand ( time(NULL) ); //initialize the random seed
const char arrayNum[4] = {'5', '6', '7', '8'};
int RandIndex = rand() % 4; //generates a random number between 0 and
cout << arrayNum[RandIndex];
int ceva = arrayNum[RandIndex] ;