<script> var rand_1 =[1, 2, 3, 4, 5], rand_2 = rand_1[Math.floor(Math.random() * rand_1.length)]; document.write(rand_2); </script>