2015-04-09から1日間の記事一覧
length = 9 numbers = [*0..9] alpha_bigs = [*'A'..'Z'] alpha_smalls = [*'a'..'z'] symbols = "! # $ % & @ + * ?".split(/\s+/) codes = [numbers, alpha_bigs, alpha_smalls, symbols].shuffle password = [] length.times do |i| password << codes[i …