legofreak689: You can have 3 variables like this:
new_song: choose(1,2,3,4,5,6,7)
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
Cheers,