sub letter { ('A'..'Z','a'..'z')[rand(52)] } sub city { join '', map {letter()} 1..10 + int rand 30 }