For 0 to 100 (inclusive) so that 0 and 100 have the same probabilities as all the numbers in between, you should multiply by 101 and use the round down to -infinity function. By multiplying by 100 and rounding to nearest, zero has about half the probability as the numbers from 1 to 99, and 100 has just slightly less than half the probability of those numbers.