Hallo!

Ungetestet und ein Schuß ins Blaue:

Nimm ein Long - sind 4 Byte sollte dann theoretisch von 0 - 31 gehen.

Probiers mal.

MfG