Sha256: 6905483c90493f0e0f6ca53d9b44807c5103400277570eac8653959ac8855e95
Contents?: true
Size: 322 Bytes
Versions: 26
Compression:
Stored size: 322 Bytes
Contents
#!/usr/bin/env ruby lower = ('0'..'Z').to_a upper = ('0'..'z').to_a extra = '!"#$%&\'()0=~|@`{}[]*:,./_<>?_;:]L*-+'.scan(/./) possiblities = lower + upper + extra output_string = '' output_length = (ARGV[0] || 8).to_i output_length.times do |n| output_string << possiblities.shuffle.first() end puts output_string
Version data entries
26 entries across 26 versions & 1 rubygems