We studied experimentally and theoretically the interaction of lasing modes in random media. When optical gain spectrum is inhomogeneously broadened, most lasing modes repel each other in the frequency domain. Some lasing modes are coupled through photon hopping or electron absorption and reemission. Under pulsed pumping, weak coupling of two modes leads to synchronization of their lasing action. Strong coupling of two lasing modes results in antiphased oscillations of their intensities.