    this.randomtip = function(){
    var length = $(".testimonials, .testimonials1").length;
    var ran = Math.floor(Math.random()*length) + 1;
    $(".testimonials:nth-child(" + ran + "),.testimonials1:nth-child(" + ran + ")").show();
    };

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