you are here: codestackercodes [RSS]simple random password method

simple random password method

def random_password(size = 8)
	charset = %w{ 2 3 4 6 7 8 9 A B C D E F G H J K L M N P Q R T V W X Y Z}
	(0...size).map{ charset.to_a[rand(charset.size)] }.join
end

Comments