Ver originalvar arr=['1','2','3','4']; // ...var rnd=Math.round(Math.random()*arr.length);alert(arr[rnd]);