Hi,
play next sound into an array when the random sample returns the same of the previous play.

Code:
SOUND *sndArray[SOUND_COUNT];
...
int _i = random(SOUND_COUNT);
if(_i == my->skSound)
	my->skSound = (_i + 1) % SOUND_COUNT;
else
	my->skSound = _i;
ent_playsound(me, sndArray[my->skSound], 100);



Salud!