function create_name(a,b){ var a_index = Math.floor(Math.random()*region.length); var b_index = Math.floor(Math.random()*city.length); var b_index = Math.floor(Math.random()*city.length); var name = a[a_index] + b[b_index]; return name; } let arry_1=["苏","陈","赵","钱","刘","张","黄","顾","李","孙"] let arry_2=["太","力","飞","满","古","凯","其","路","尚","宏"] let arry_3=["亮","伟","梁","栋","国","涛","胜","荣","威","博"] let name = create_name(arry_1,arry_2); console.log(name);