mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-16 16:38:40 +00:00
Add more names and better rnd
This commit is contained in:
parent
d831f1c50a
commit
8d835f1036
|
|
@ -469,8 +469,22 @@ class Name
|
||||||
'Lutz', 'Duarte', 'Kidd', 'Key', 'Cooke',
|
'Lutz', 'Duarte', 'Kidd', 'Key', 'Cooke',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'asian' => [
|
||||||
|
'female' => ['none'],
|
||||||
|
'male' => ['none'],
|
||||||
|
'family' => [
|
||||||
|
'Հովհաննիսյան', 'Հարությունյան', 'Սարգսյան', 'Խաչատրյան', 'Գրիգորյան',
|
||||||
|
'আহমেদ', 'আলী', 'আক্তার', 'বন্দ্যোপাধ্যায়', 'নিক', 'ব্যাপারী', 'বড়ুয়া', 'বিশ্বাস', 'ভৌমিক', 'বসু',
|
||||||
|
'王', '李', '张', '刘', '陈', '杨', '黄', '赵', '吴', '周', '徐', '孙', '马', '朱', '胡', '郭', '何', '高', '林', '罗',
|
||||||
|
'כהן', 'לוי', 'מזרחי', 'פרץ', 'ביטון', 'דהן', 'אברהם', 'פרידמן', 'מלכה', 'אזולאי', 'כץ', 'יוסף', 'דוד', 'עמר', 'אוחיון',
|
||||||
|
'김', '리', '박', '최', '정', '강', '조', '윤', '장', '림', '한', '신', '서', '권', '황', '안', '송', '홍', '고', '문', '손', '량',
|
||||||
|
'Yılmaz', 'Kaya', 'Demir', 'Şahin', 'Çelik', 'Yıldız', 'Yıldırım', 'Öztürk', 'Aydın', 'Özdemir', 'Arslan', 'Doğan', 'Kılıç', 'Aslan', 'Çetin', 'Kara', 'Koç', 'Kurt', 'Özkan', 'Şimşek',
|
||||||
|
],
|
||||||
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a random string.
|
* Get a random string.
|
||||||
*
|
*
|
||||||
|
|
@ -483,8 +497,8 @@ class Name
|
||||||
*/
|
*/
|
||||||
public static function generateName(array $type, string $origin = 'western') : string
|
public static function generateName(array $type, string $origin = 'western') : string
|
||||||
{
|
{
|
||||||
$rndType = rand(0, count($type) - 1);
|
$rndType = mt_rand(0, count($type) - 1);
|
||||||
|
|
||||||
return self::$names[$origin][$type[$rndType]][rand(0, count(self::$names[$origin][$type[$rndType]]) - 1)];
|
return self::$names[$origin][$type[$rndType]][mt_rand(0, count(self::$names[$origin][$type[$rndType]]) - 1)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user