I've started studying geometric probability and I am having some difficulty with this version of problem :
Two integers are chosen at random between $0$ and $10$ inclusive. What is the probability that they differ by no more than $5$ ?
The integers restriction really makes it harder for me,without this restriction I would tackle the problem like this(I am not sure it is correct):
Given two numbers $x,y$ we want $0\le y-x \le 5$ or $x \le y \le 5+x $
From the last restriction I have to satisfy the following inequalities $y \le 5+x$ and $y \ge x $ where $ 0 \le y,x \le 10$ (look image below)
Therefore the area I want is $75$ Thus the probability would be $\cfrac{75}{100} $
Now with the integers restriction I would have

where the red filled circles indicate the integers which satisfy the restriction.
How do I count them now ?I can't simply count the dots as that would lead me to a probability higher than the previous one,which is impossible (I would get $\cfrac{42}{100}$)..

BETWEEN 0 AND 10... does not include 0 or 10. – wolfies Jan 20 '16 at 16:37