It is quite random, and it's a good way of getting a load of MasterBalls.
However, soft resetting doesn't help, because the numbers are random EACH DAY, but they do not change every time you soft reset.
It is also a random number as well. Talking to the girl after you won your prize, she will not let you, and say something like, come back tomorrow! or something along those lines.