cout << items[itemLocation];
// itemLocation being a whole NON-NEGATIVE number (int, size_t, etc)
// specifying the location of the data item in your array
Now, to directly address your question, just make itemLocation a rand() function which selects between 0 and your array's (size - 1).