I was clearly the interval.
Create function for generate a random number between [a, b).