Math.random() returns a random number between 0 (inclusive) and 1 (exclusive), with a bit of trick, you can have
Math.random()*12+1
that will return a random number between 1 (inclusive) and 13 (exclusive).
In this way, there is no need to check for the occurrence of 0.
Since you are re-using the same code to generate multiple random numbers, put this code in a function for better code re-use, e.g.
function getRndNumb(){
return Math.floor(Math.random()*12+1);
}
Lastly, to repeatedly re-generate random numbers when there is duplication, use a loop, in this case do...while is more appropriate, e.g.
do {
numb1 = getRndNumb();
numb2 = getRndNumb();
numb3 = getRndNumb();
} while (numb1 == numb2 || numb1==numb3 || numb2==numb3)
I shall leave it to you to put together these pieces.