Code:
<script type="text/javascript">
this.randomtip = function(){
var length = $("#tips li").length;
for($i = 0; $i < 3; $i++)
{
var ran = Math.floor(Math.random()*length) + 1;
$("#tips li:nth-child(" + ran + ")").show();
}
};
$(document).ready(function(){
randomtip();
});
</script>
I didn't check this, but you see what I did right?