
this.randomtip = function(){
	for(var i = 0; i < 4; i++)
	{
		var length = $("#tips" + i + " li").length; // this is where we put the id of the list
		var ran = Math.floor(Math.random()*length) + 1;
		$("#tips" + i + " li:nth-child(" + ran + ")").show();
	}

};

$(document).ready(function(){	
	randomtip();
});