Changed random line puller to work from STDIN