function create_name(a, b, c) {
var a_index = Math.floor(Math.random() * a.length);
var b_index = Math.floor(Math.random() * b.length);
var c_index = Math.floor(Math.random() * c.length);
var name = a[a_index] + b[b_index] + c[c_index];
return name;
}
let arry_1 = ["苏", "陈", "赵", "钱", "刘", "张", "黄", "顾", "李", "孙"]
let arry_2 = ["太", "力", "飞", "满", "古", "凯", "其", "路", "尚", "宏"]
let arry_3 = ["亮", "伟", "梁", "栋", "国", "涛", "胜", "荣", "威", "博"]
let name = create_name(arry_1, arry_2, arry_3);
// console.log(name);
var randomMobile = (min = 100000000, max = 999999999) => "15" + (Math.floor(Math.random() * (max - min + 1)) + min);
var randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;
var ranomIdCard = function ranomIdCard(min = 10000000, max = 99999999) {
var phone_medim = Math.floor(Math.random() * (max - min) + min);
var id_card = "3203241993" + phone_medim;
return id_card;
}
var randomCar = function randomCar() {
region = ["苏", "鲁", "豫", "皖", "贵", "浙", "冀", "沪", "黔", "湘"];
city = ["A", "B", "C", "D", "E", "F", "G", "H", "L", "M"];
var number = Math.floor(Math.random() * (99999 - 11111) + 11111);
var region_index = Math.floor(Math.random() * region.length);
var city_index = Math.floor(Math.random() * city.length);
var car_number = region[region_index] + city[city_index] + number;
return car_number;
}
var randomGuaCar = function randomGuaCar(type) {
region = ["苏", "鲁", "豫", "皖", "贵", "浙", "冀", "沪", "黔", "湘"];
city = ["A", "B", "C", "D", "E", "F", "G", "H", "L", "M"];
var number = Math.floor(Math.random() * (9999 - 1111) + 1111);
var region_index = Math.floor(Math.random() * region.length);
var city_index = Math.floor(Math.random() * city.length);
var gua_car_number = region[region_index] + city[city_index] + number + "挂";
return gua_car_number;
}
console.log(randomMobile());
console.log(randomInt(100, 999));
console.log(ranomIdCard());
console.log(randomCar());
console.log(randomGuaCar());
console