range = ["0".ord.."9".ord, "A".ord.."Z".ord, "a".ord.."z".ord].map!{ |k| k.to_a}.flatten!1000.times.map{ range[rand(range.size)].chr }.join
range = ["0".ord.."9".ord, "A".ord.."Z".ord, "a".ord.."z".ord].map!{ |k| k.to_a}.flatten! 1000.times.map{ range[rand(range.size)].chr }.join