Got the array to work. Now it lines up properly. You can also do
Math.ciel(Math.random()*10) it will not allow 0 to exist in the resul.
While Math.floor will allow it to reach 0 in an answer.