you play a CD using the shuffle settings are the selections of the first two songs are played independent or dependent events???

It depends if the first CD is returned to the storage before selecting the second (replacement).

If it does, and assuming the algorithm makes no preference for any CD (or song), then they are independent events.

If the CD is not returned to the storage rack, then it is not one of the choices for the second, so the events are dependent.