Two alternative Ruby methods of generating an 8-character passwords:
puts [].tap { |l| 8.times { l << ('a'..'z').to_a[rand 26] }}.joinputs Array.new(8).map { ('a'..'z').to_a[rand 26] }.joinLabels: ruby
0 Comments:
Post a Comment
<< Home