This question already has an answer here:
int random(){ double x = ((double) rand() / (RAND_MAX)); // this i tried but only 0 return x; }
how I generate either 0 or 1 randomly for a tic tac toe player to play
Aucun commentaire:
Enregistrer un commentaire