Levin,
array()
document.write(arr[
math.random()*arr.leng
ht]);
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
</head>
<body>
<script>
var arr = new Array()
arr[1] = '<a class="wrapper" href="" title=""><img class="logo" id="id1" src="1.jpg">1</a>'
arr[2] = '<a class="wrapper" href="" title=""><img class="logo" id="id1" src="2.jpg">2</a>'
arr[3] = '<a class="wrapper" href="" title=""><img class="logo" id="id1" src="3.jpg">3</a>'
arr[4] = '<a class="wrapper" href="" title=""><img class="logo" id="id1" src="4.jpg">4</a>'
arr[5] = '<a class="wrapper" href="" title=""><img class="logo" id="id1" src="5.jpg">5</a>'
arr[6] = '<a class="wrapper" href="" title=""><img class="logo" id="id1" src="6.jpg">6</a>'
for (var i=0; i<arr.length; i++) {
document.write(arr[Math.floor(Math.random()*(arr.length-1))+1]);
}
</script>
</body>
</html>