From: polarpolar Date: 2004-07-24T20:06:55+09:00 Subject: Re: The number of lines of a file? gabriele renzi 提到: > > Anyway this may work: > words=File.read('w.txt').split("\n") > word= words[rand(words.size)-1] > Thank you. I will learn more about the "line" :) polarpolar