Use the Mersenne Twister instead of rand() because rand() is terrible. Also I'm terrible because I haven't guarenteed my ints are 4 bytes even though the MT19937 always returns 4 bytes.