possibile si, non con file TXT, ma con un array js ;-) poi metti il file esterno se vuoi


<script>
testi=new Array()
testi[0]="primo"
testi[1]="secondo"
testi[2]="terzo"
testi[3]="ultimo"
numero=parseInt(Math.random()*testi.length)
alert(testi[numero])
</Script>


ovviamente, basta che cambi alert con qualcosa per scriverlo