JavaScript Math object : random() method