alert(Math.floor(Math.random()*71+1));
それらを含めて 1 から 71 までの数値を返します。
alert($(".program > div:nth-of-type(5)".text())
対応する親の 5 番目の div にテキストを返します。まだ
alert($(".program > div:nth-of-type(Math.floor(Math.random()*71+1))").text());
まったく機能しません。どこが間違っていますか?