Browse Source

initial commit

Signed-off-by: Erik Hollensbe <github@hollensbe.org>
master
Erik Hollensbe 1 year ago
commit
c8fb5cc56c
  1. 3
      README.md
  2. 102401
      file1.txt
  3. 102401
      file2.txt
  4. 102401
      file3.txt
  5. 102401
      file4.txt
  6. 102401
      file5.txt
  7. 10
      randomwords.rb

3
README.md

@ -0,0 +1,3 @@
This is a small program for my friend that generates random words, to teach programming.
The file1..5 are just `/usr/share/dict/words`; they are all the same file.

102401
file1.txt
File diff suppressed because it is too large
View File

102401
file2.txt
File diff suppressed because it is too large
View File

102401
file3.txt
File diff suppressed because it is too large
View File

102401
file4.txt
File diff suppressed because it is too large
View File

102401
file5.txt
File diff suppressed because it is too large
View File

10
randomwords.rb

@ -0,0 +1,10 @@
%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
Loading…
Cancel
Save