For example, rand() % 10 consumes slightly more memory (eight bytes more, to be precise) than rand() % 8.