Generate the random number with the top bit set.
Remove magic numbers.