<script language=javascript>
var a=new Array('1','2')
var b=Math.floor(Math.random()*2);
alert(a[b])
</script>