my bad, I'm working on 64Bit and forgot its 4 byte on 32Bit systems.

the return type of rand() is int, so its technically −2147483648 to 2147483647. But if it does only return positiv values, thats no big deal.. the string will just need 1 byte less because the minus will never appear