-Your sounds array should be global, constant, and have 2 dimensions.
-The max random number should be the size of your sound array minus 1 ... random_num( 0, sizeof sound - 1 )
-Instead it would be sound[ key ] since array indexes are referred to by integer.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.