Javascript : random number from X to Y #snippet