miller/data/generators/fuzz.rb
2015-06-01 09:23:42 -04:00

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