Math\Rand::getInteger returns no values for the given range

The function returns no values for the given range.

mt_rand(0-99) --> 0-99
Rand::getInteger(0-99) --> 0-63

There's a Bug in the Bitcount function for integers.
100 = 1100100 = 7 Bits (not 6)