The total numbers of integers used is 7 + 1 = 8 (since we are using ubtewgers from 0 to 7).
If 0, 1, 2 and 3 represents succes, we have 4 integers of the 8 total that are success, thus, the theoretical probability is:
So the probability os success is 0.50 = 50%.