You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

10 lines
147 B

%w[
file1.txt
file2.txt
file3.txt
file4.txt
file5.txt
].each do |filename|
lines = File.read(filename).split(/\r?\n/)
puts lines.sample(1)
end