A naso:

rand = 10 + Math.round(-5*Math.random())+Math.round(5*Math.random());