legofreak689: You can have 3 variables like this:
song_Counter: to count the song was played.
song_ID: store the ID of last played song.
Each time you play a song you add 1 to that counter.
If counter = 2 you switch to the next one but compare the song_ID.
If new_song = song_ID: do random again.
Else play that song and set the song_ID to new_song