mercredi 7 avril 2021

How to get a random int from a multidimensional array in c++

I'm looking to get a random int from a 2d array like this:

static const int points[6][3] = { {2,3,4}, {11,12,13}, {14,15,16}, {17,0,1}, {8,9,10}, {5,6,7} };

The output could be any number within the array.




Aucun commentaire:

Enregistrer un commentaire