Perhaps you could rand() % 7+2 and make your ships between 2 and 8 "pegs" long?

Just because you have some values already in your program, that doesn't mean you can't be flexible with new one's.