If you don't care about the order, try:
var textToShow = ['text1', 'text2', 'text3', 'text4']
$(document).ready(function() {
$("h4").html(textToShow[Math.floor(Math.random()*textToShow.length)]);
});
Here is a fiddle: http://jsfiddle.net/JZDnv/ Keep clicking 'run' to get different things.