mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 18:25:45 +00:00
14 lines
293 B
Ruby
Executable file
14 lines
293 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
alphabet = 'abcdefghijklmnopqrstuvwxyz0123456789~!#$%^&*()-_=+{}[];:"<>,./?'
|
|
nlines=50
|
|
|
|
alphabet = alphabet.split('')
|
|
nlines.times do
|
|
length = rand(40)
|
|
if rand < 0.1
|
|
length = 0
|
|
end
|
|
output = (1..length).to_a.collect{alphabet.sample}.join('')
|
|
puts output
|
|
end
|