こんな感じ?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<title>untitled</title>
<script type="text/javascript">
var msg = new Array();
msg[0]='エルビス・プレスリー';
msg[1]='ジェームス・ディーン';
msg[2]='ヒッピー・ムーブメント';
msg[3]='ベトナム反戦運動';
msg[4]='ノンセクトラジカル';
function ShowVal(){
myVal=Math.floor(Math.random()*msg.length);
alert(msg[myVal]);
}
</script>
</head>
<body>
<div>
<input type="button" value="Click" onclick="ShowVal()">
</div>
</body>
</html>