演示代码: [code]#!/usr/bin/env ruby COUNT = 10 require ‘benchmark’ $account_chars = (‘A’..’Z’).to_a.delete_if {|c| c =~ /[AEIOUY]/ } #$password_chars = (‘0’..’9′).to_a $password_chars = Array.new $password_chars[0..9] = (‘0’..’9′).to_a $password_chars[10..36] = (‘A’..’Z’).to_a def account_char $account_