|
|
function nameGen(type) {
|
|
|
var nm1 = [
|
|
|
["Ahlulani", "Separate The Good From The Bad"],
|
|
|
["Alani", "Refuse The Bad"],
|
|
|
["Amukelani", "Recognize"],
|
|
|
["Amukelo", "Acceptance"],
|
|
|
["Akani", "Build"],
|
|
|
["Andzisa", "Multiply The Good"],
|
|
|
["Andzani", "Grow"],
|
|
|
["Andzisani", "Multiply The Good"],
|
|
|
["Andziso", "Growth"],
|
|
|
["Chavani", "Be Afraid Of The Bad"],
|
|
|
["Cukumetani", "Throw Away The Bad"],
|
|
|
["Dzunani", "Be Proud"],
|
|
|
["Dzunisani", "Praise"],
|
|
|
["Dyondzani", "Learn"],
|
|
|
["Drondro", "Pool Of Knowledge"],
|
|
|
["Dyondzo", "Pool Of Knowledge"],
|
|
|
["Endlani", "Deed"],
|
|
|
["Engetelo", "Addition Of Goodness"],
|
|
|
["Entelo", "Depth"],
|
|
|
["Felani", "The One Worth Dying For"],
|
|
|
["Fikani", "Reach"],
|
|
|
["Fumani", "Be Wealthy"],
|
|
|
["Fundzhani", "Give Royal Respect"],
|
|
|
["Funungulo", "Revelation"],
|
|
|
["Hanyani", "Live Long"],
|
|
|
["Hetisani", "Finish"],
|
|
|
["Hlamalani", "Wonder"],
|
|
|
["Hlanganani", "Unite"],
|
|
|
["Hlawulani", "Choose The Right Path"],
|
|
|
["Hlawuleka", "Perfect"],
|
|
|
["Hlayisani", "Protect"],
|
|
|
["Hlayiseka", "Be Safe"],
|
|
|
["Hlekani", "Laugh"],
|
|
|
["Hlengani", "Gather"],
|
|
|
["Hlomani", "Arm Yourselves"],
|
|
|
["Hlulani", "Be Victorious"],
|
|
|
["Hlongavi", "The One Who Cannot Be Enslaved"],
|
|
|
["Kambani", "Seek"],
|
|
|
["Khensani", "Give Thanks"],
|
|
|
["Khomeleni", "Forgive"],
|
|
|
["Khongelani", "Pray"],
|
|
|
["Khinkhi", "Eventful"],
|
|
|
["Kotani", "Accomplish"],
|
|
|
["Kulani", "Grow"],
|
|
|
["Kurhula", "Peace"],
|
|
|
["Landzani", "Follow"],
|
|
|
["Langutani", "Behold"],
|
|
|
["Lavani", "Pursuit"],
|
|
|
["Luleka", "Correct The Way"],
|
|
|
["Lwandle", "Sea"],
|
|
|
["Langavi", "Flame"],
|
|
|
["Mahlori", "Wonders"],
|
|
|
["Makungu", "Plan"],
|
|
|
["Masungulo", "Beginnings"],
|
|
|
["Matimba", "Strength"],
|
|
|
["Matimu", "History Made"],
|
|
|
["Mfanelo", "Noble Duty"],
|
|
|
["Mheho", "Direction"],
|
|
|
["Miyelani", "Be Serene"],
|
|
|
["Mixo", "Dawn"],
|
|
|
["Mpimo", "Measure"],
|
|
|
["Muhluri", "Victor"],
|
|
|
["Mulweri", "Protector"],
|
|
|
["Murisi", "Shepherd"],
|
|
|
["Musa", "Kindness"],
|
|
|
["Muvumbi", "Creator"],
|
|
|
["Mumbi", "Creator"],
|
|
|
["Murhi", "Cure Of Sorrow"],
|
|
|
["Muvangi", "Trigger"],
|
|
|
["Munene", "Righteous"],
|
|
|
["Masasani", "Helper"],
|
|
|
["Mutsemi", "The One Who Parts Evil"],
|
|
|
["Mongo", "Prime"],
|
|
|
["Ndzalo", "Abundance"],
|
|
|
["Nganakani", "Prince"],
|
|
|
["Nchamani", "The One Who Fears No One"],
|
|
|
["Nkulo", "Growth"],
|
|
|
["Nhlaluko", "Victory"],
|
|
|
["Nhlamulo", "Solution"],
|
|
|
["Nhlawuleko", "Chosen"],
|
|
|
["Nhlelo", "Selection"],
|
|
|
["Nhlengelo", "Sum Of Fortune"],
|
|
|
["Nhlengo", "Rally"],
|
|
|
["Nhleko", "Season Of Laughter"],
|
|
|
["Nhlohlotelo", "Inspiration"],
|
|
|
["Nhluvuko", "Progress"],
|
|
|
["Njombo", "Luck"],
|
|
|
["Nkateko", "Lucky"],
|
|
|
["Nkavelo", "Our Share"],
|
|
|
["Nkoka", "Value"],
|
|
|
["Nkorwiso", "Satisfaction"],
|
|
|
["Nseketelo", "Support"],
|
|
|
["Nsika", "Strong Man"],
|
|
|
["Nsovo", "Compassion"],
|
|
|
["Nsuku", "Golden"],
|
|
|
["Ntivo", "Knowledge"],
|
|
|
["Ntiyiso", "Truth"],
|
|
|
["Ntsako", "Happiness"],
|
|
|
["Ntsetselelo", "Mercy"],
|
|
|
["Ntshembo", "Faith"],
|
|
|
["Ntshovelo", "Harvest"],
|
|
|
["Ntshuxeko", "Freedom"],
|
|
|
["Ntsumi", "Angel"],
|
|
|
["Nyingiso", "Attention"],
|
|
|
["Nyiko", "Gift"],
|
|
|
["Nyoxana", "Joy"],
|
|
|
["Pfukani", "Rise"],
|
|
|
["Pfumelani", "Believe"],
|
|
|
["Pfumu", "Supremacy"],
|
|
|
["Rhangani", "Be The Pioneer"],
|
|
|
["Rhulani", "Be Peaceful"],
|
|
|
["Rifumu", "Wealth"],
|
|
|
["Rindzela", "Expect Something Good"],
|
|
|
["Ringeta", "Keep Trying"],
|
|
|
["Risima", "Value"],
|
|
|
["Risimati", "Valuable"],
|
|
|
["Rito", "Voice Of Honour"],
|
|
|
["Saleleni", "Remainder"],
|
|
|
["Teka", "Grasp"],
|
|
|
["Tinyiko", "Gifts"],
|
|
|
["Tirhani", "Work Together"],
|
|
|
["Tiyisela", "Endure"],
|
|
|
["Tiyiselani", "Have Endurance"],
|
|
|
["Tlangelani", "Rejoice"],
|
|
|
["Tsakani", "Be Happy"],
|
|
|
["Tenga", "Be Tranquil"],
|
|
|
["Tshikani", "Leave The Wrong Ways"],
|
|
|
["Tsundzuka", "Remember"],
|
|
|
["Vonani", "Behold"],
|
|
|
["Vukosi", "Royalty"],
|
|
|
["Vulani", "Speak Volumes"],
|
|
|
["Vurhonga", "Dawn"],
|
|
|
["Vutlhari", "Wisdom"],
|
|
|
["Vutsonga", "Dawn"],
|
|
|
["Vutomi", "Life"],
|
|
|
["Werhu", "Ours"],
|
|
|
["Xisungulo", "The Beginning"],
|
|
|
["Xihlamariso", "Surprise"],
|
|
|
["Xikombiso", "Example"],
|
|
|
["Xilombe", "Sweet Voice"],
|
|
|
["Xiluvelo", "Shrine"],
|
|
|
["Xitshembiso", "Promise"],
|
|
|
["Xivono", "Vision"],
|
|
|
["Xongela", "Defend"],
|
|
|
["Yinhla", "Cornerstone"],
|
|
|
["Yerhu", "Ours"]
|
|
|
];
|
|
|
var nm2 = [
|
|
|
["Amukelani", "Accept"],
|
|
|
["Amukelo", "Acceptance"],
|
|
|
["Andzisa", "Multiply The Good"],
|
|
|
["Andzani", "Grow"],
|
|
|
["Andzisani", "Multiply The Good"],
|
|
|
["Andziso", "Growth"],
|
|
|
["Basani", "Be Pure"],
|
|
|
["Basambilu", "Pure Hearted"],
|
|
|
["Bombisani", "Adorn"],
|
|
|
["Danisa", "Shame The Enemy"],
|
|
|
["Dzunisani", "Praise"],
|
|
|
["Drondro", "Pool Of Knowledge"],
|
|
|
["Dyondzo", "Pool Of Knowledge"],
|
|
|
["Endlani", "Deed"],
|
|
|
["Engetelo", "Addition Of Goodness"],
|
|
|
["Entelo", "Depth"],
|
|
|
["Enelo", "Content"],
|
|
|
["Fanisa", "Be Exemplary"],
|
|
|
["Felani", "The One Worth Dying For"],
|
|
|
["Fumani", "Be Wealthy"],
|
|
|
["Funungulo", "Revelation"],
|
|
|
["Gavaza", "One Who Dresses Elegantly"],
|
|
|
["Hetisani", "Finish What We Started"],
|
|
|
["Hintekani", "Strive"],
|
|
|
["Hlamalani", "Wonder"],
|
|
|
["Hlawulani", "Choose The Right Path"],
|
|
|
["Hlawuleka", "Perfect"],
|
|
|
["Hlayisani", "Protect"],
|
|
|
["Hlekani", "Laugh"],
|
|
|
["Hlengani", "Gather"],
|
|
|
["Hlori", "Wonder"],
|
|
|
["Hlulani", "Be Victorious"],
|
|
|
["Horisani", "Heal"],
|
|
|
["Hlongavi", "The One Who Cannot Be Enslaved"],
|
|
|
["Kanelani", "Engage"],
|
|
|
["Katekani", "Be Blessed"],
|
|
|
["Khana", "Victory Dance"],
|
|
|
["Khensani", "Give Thanks"],
|
|
|
["Khomeleni", "Forgive"],
|
|
|
["Khongelani", "Pray"],
|
|
|
["Khinkhi", "Eventful"],
|
|
|
["Kurisani", "Raise"],
|
|
|
["Kulani", "Grow"],
|
|
|
["Landzani", "Follow"],
|
|
|
["Langutani", "Behold"],
|
|
|
["Lulama", "Be Righteous"],
|
|
|
["Lwandle", "Sea"],
|
|
|
["Langavi", "Flame"],
|
|
|
["Mahlori", "Wonders"],
|
|
|
["Makhanani", "Ever Happy"],
|
|
|
["Makungu", "Plan"],
|
|
|
["Marito", "Words"],
|
|
|
["Masana", "Morning Sunshine"],
|
|
|
["Masingita", "Miracles"],
|
|
|
["Masungulo", "Beginnings"],
|
|
|
["Matimba", "Strength"],
|
|
|
["Matimu", "History Made"],
|
|
|
["Mbhoni", "Witness"],
|
|
|
["Mbhuri", "Beautiful"],
|
|
|
["Mfanelo", "Noble Duty"],
|
|
|
["Mheho", "Direction"],
|
|
|
["Mikateko", "Blessings"],
|
|
|
["Miyelani", "Be Serene"],
|
|
|
["Mixo", "Dawn"],
|
|
|
["Mpfumelo", "Bond"],
|
|
|
["Mpimo", "Measure"],
|
|
|
["Muhluri", "Victor"],
|
|
|
["Musa", "Kindness"],
|
|
|
["Muvumbi", "Creator"],
|
|
|
["Mumbi", "Creator"],
|
|
|
["Murhi", "Cure Of Sorrow"],
|
|
|
["Muvangi", "Trigger"],
|
|
|
["Masasani", "Helper"],
|
|
|
["Ndzalama", "Emerald"],
|
|
|
["Ndzalo", "Abundance"],
|
|
|
["Neha", "Offer"],
|
|
|
["Nganakati", "Princess"],
|
|
|
["Nchamani", "The One Who Fears No One"],
|
|
|
["Nkulo", "Growth"],
|
|
|
["Nhlalala", "Honey Bird"],
|
|
|
["Nhlamulo", "Solution"],
|
|
|
["Nhlawuleko", "Chosen"],
|
|
|
["Nhleko", "Season Of Laughter"],
|
|
|
["Nhlohlotelo", "Inspiration"],
|
|
|
["Nhlovo", "Autumn"],
|
|
|
["Nhluvuko", "Progress"],
|
|
|
["Njombo", "Luck"],
|
|
|
["Nkateko", "Lucky"],
|
|
|
["Nkorwiso", "Satisfaction"],
|
|
|
["Ntlakuso", "Glory"],
|
|
|
["Nonisa", "Enrich"],
|
|
|
["Nsaseko", "Beauty"],
|
|
|
["Nseketelo", "Support"],
|
|
|
["Nsoma", "Family Anchor"],
|
|
|
["Nsovo", "Compassion"],
|
|
|
["Nsuku", "Golden"],
|
|
|
["Ntivo", "Knowledge"],
|
|
|
["Ntiyiso", "Truth"],
|
|
|
["Ntsako", "Happiness"],
|
|
|
["Ntsakelo", "Gladness"],
|
|
|
["Ntsakisi", "Source Of Happiness"],
|
|
|
["Ntsakiso", "Make Happy"],
|
|
|
["Ntsetselelo", "Mercy"],
|
|
|
["Ntshembo", "Trust"],
|
|
|
["Ntshovelo", "Harvest"],
|
|
|
["Ntshuxeko", "Freedom"],
|
|
|
["Ntsumi", "Angel"],
|
|
|
["Ntwelo", "Compassion"],
|
|
|
["Nyeleti", "Star"],
|
|
|
["Nyingiso", "Attention"],
|
|
|
["Nyiko", "Gift"],
|
|
|
["Nyoxana", "Joy"],
|
|
|
["N’Wayitelo", "Smile"],
|
|
|
["Pfukani", "Rise"],
|
|
|
["Pfumelani", "Believe"],
|
|
|
["Pfunani", "Help"],
|
|
|
["Ponani", "Live To Tell The Tale"],
|
|
|
["Ponisa", "Deliver"],
|
|
|
["Pfumu", "Supremacy"],
|
|
|
["Rhandzu", "Lovely"],
|
|
|
["Rhulani", "Be Peaceful"],
|
|
|
["Rimukani", "Remember"],
|
|
|
["Rindzela", "Expect Something Good"],
|
|
|
["Ringeta", "Keep Trying"],
|
|
|
["Ripfumelo", "Belief"],
|
|
|
["Risima", "Value"],
|
|
|
["Risuna", "Pleasant Scent"],
|
|
|
["Rito", "Voice Of Honour"],
|
|
|
["Rivoningo", "Light"],
|
|
|
["Sana", "Warm Sunray"],
|
|
|
["Sarisa", "Bid Farewell"],
|
|
|
["Saseka", "Beauty"],
|
|
|
["Sasekisa", "Beautify"],
|
|
|
["Sisimuka", "Rise"],
|
|
|
["Singila", "Nurture"],
|
|
|
["Saleleni", "Remainder"],
|
|
|
["Tengisa", "Purify"],
|
|
|
["Tintswalo", "Grace"],
|
|
|
["Tinyiko", "Gifts"],
|
|
|
["Tirhani", "Work Together"],
|
|
|
["Tiyisela", "Endure"],
|
|
|
["Tiyiselani", "Have Endurance"],
|
|
|
["Tlangelani", "Rejoice"],
|
|
|
["Tsakani", "Be Happy"],
|
|
|
["Tenga", "Be Tranquil"],
|
|
|
["Tshikani", "Leave The Wrong Ways"],
|
|
|
["Twelani", "Have Compassion"],
|
|
|
["Tsundzuka", "Remember"],
|
|
|
["Vangama", "Shine Bright"],
|
|
|
["Vonani", "Behold"],
|
|
|
["Vukona", "Presence"],
|
|
|
["Vulani", "Speak Volumes"],
|
|
|
["Vulombe", "Honey"],
|
|
|
["Vurhonga", "Dawn"],
|
|
|
["Vutivi", "Knowledge"],
|
|
|
["Vutlhari", "Wisdom"],
|
|
|
["Vutsonga", "Dawn"],
|
|
|
["Vuxa", "Dawn"],
|
|
|
["Vutomi", "Life"],
|
|
|
["Welani", "Conquer Obstacles"],
|
|
|
["Wisani", "Rest"],
|
|
|
["Werhu", "Ours"],
|
|
|
["Xiavelo", "Share"],
|
|
|
["Xichavo", "Respect"],
|
|
|
["Xihiwa", "Gift"],
|
|
|
["Xihlengo", "Honey Comb"],
|
|
|
["Xisungulo", "The Beginning"],
|
|
|
["Xihlamariso", "Surprise"],
|
|
|
["Xikombiso", "Example"],
|
|
|
["Xilaveko", "Need"],
|
|
|
["Xilombe", "Sweet Voice"],
|
|
|
["Xiluva", "Flower"],
|
|
|
["Xiluvelo", "Shrine"],
|
|
|
["Xitshembiso", "Promise"],
|
|
|
["Xivono", "Vision"],
|
|
|
["Xongisa", "Beautify"],
|
|
|
["Yerhu", "Ours"]
|
|
|
];
|
|
|
var nm4 = [
|
|
|
["Amukelani", "Recognize"],
|
|
|
["Amukelo", "Acceptance"],
|
|
|
["Andzisa", "Multiply the good"],
|
|
|
["Andzani", "Grow"],
|
|
|
["Andzisani", "Multiply the good"],
|
|
|
["Andziso", "Growth"],
|
|
|
["Dzunisani", "Praise"],
|
|
|
["Drondro", "Pool of Knowledge"],
|
|
|
["Dyondzo", "Pool of Knowledge"],
|
|
|
["Endlani", "Deed"],
|
|
|
["Engetelo", "Addition of goodness"],
|
|
|
["Entelo", "Depth"],
|
|
|
["Felani", "The One Worth Dying For"],
|
|
|
["Fumani", "Be Wealthy"],
|
|
|
["Funungulo", "Revelation"],
|
|
|
["Hetisani", "Finish"],
|
|
|
["Hlamalani", "Wonder"],
|
|
|
["Hlawulani", "Choose the right path"],
|
|
|
["Hlawuleka", "Perfect"],
|
|
|
["Hlayisani", "Protect"],
|
|
|
["Hlekani", "Laugh"],
|
|
|
["Hlengani", "Gather"],
|
|
|
["Hlulani", "Be Victorious"],
|
|
|
["Hlongavi", "The One Who Cannot be Enslaved"],
|
|
|
["Khensani", "Give Thanks"],
|
|
|
["Khomeleni", "Forgive"],
|
|
|
["Khongelani", "Pray"],
|
|
|
["Khinkhi", "Eventful"],
|
|
|
["Kulani", "Grow"],
|
|
|
["Landzani", "Follow"],
|
|
|
["Langutani", "Behold"],
|
|
|
["Lwandle", "Sea"],
|
|
|
["Langavi", "Flame"],
|
|
|
["Mahlori", "Wonders"],
|
|
|
["Makungu", "Plan"],
|
|
|
["Masungulo", "Beginnings"],
|
|
|
["Matimba", "Strength"],
|
|
|
["Matimu", "History made"],
|
|
|
["Mfanelo", "Noble Duty"],
|
|
|
["Mheho", "Direction"],
|
|
|
["Miyelani", "Be Serene"],
|
|
|
["Mixo", "Dawn"],
|
|
|
["Mpimo", "Measure"],
|
|
|
["Muhluri", "Victor"],
|
|
|
["Musa", "Kindness"],
|
|
|
["Muvumbi", "Creator"],
|
|
|
["Mumbi", "Creator"],
|
|
|
["Murhi", "Cure of sorrow"],
|
|
|
["Muvangi", "Trigger"],
|
|
|
["Masasani", "Helper"],
|
|
|
["Ndzalo", "Abundance"],
|
|
|
["Nchamani", "The One Who Fears No One"],
|
|
|
["Nkulo", "Growth"],
|
|
|
["Nhlamulo", "Solution"],
|
|
|
["Nhlawuleko", "Chosen"],
|
|
|
["Nhleko", "Season of Laughter"],
|
|
|
["Nhlohlotelo", "Inspiration"],
|
|
|
["Nhluvuko", "Progress"],
|
|
|
["Njombo", "Luck"],
|
|
|
["Nkateko", "Lucky"],
|
|
|
["Nkorwiso", "Satisfaction"],
|
|
|
["Nseketelo", "Support"],
|
|
|
["Nsovo", "Compassion"],
|
|
|
["Nsuku", "Golden"],
|
|
|
["Ntivo", "Knowledge"],
|
|
|
["Ntiyiso", "Truth"],
|
|
|
["Ntsako", "Happiness"],
|
|
|
["Ntsetselelo", "Mercy"],
|
|
|
["Ntshembo", "Faith"],
|
|
|
["Ntshovelo", "Harvest"],
|
|
|
["Ntshuxeko", "Freedom"],
|
|
|
["Ntsumi", "Angel"],
|
|
|
["Nyingiso", "Attention"],
|
|
|
["Nyiko", "Gift"],
|
|
|
["Nyoxana", "Joy"],
|
|
|
["Pfukani", "Rise"],
|
|
|
["Pfumelani", "Believe"],
|
|
|
["Pfumu", "Supremacy"],
|
|
|
["Rhulani", "Be Peaceful"],
|
|
|
["Rindzela", "Expect something Good"],
|
|
|
["Ringeta", "Keep Trying"],
|
|
|
["Risima", "Value"],
|
|
|
["Rito", "Voice of Honour"],
|
|
|
["Saleleni", "Remainder"],
|
|
|
["Tinyiko", "Gifts"],
|
|
|
["Tirhani", "Work Together"],
|
|
|
["Tiyisela", "Endure"],
|
|
|
["Tiyiselani", "Have Endurance"],
|
|
|
["Tlangelani", "Rejoice"],
|
|
|
["Tsakani", "Be Happy"],
|
|
|
["Tenga", "Be Tranquil"],
|
|
|
["Tshikani", "Leave The Wrong Ways"],
|
|
|
["Tsundzuka", "Remember"],
|
|
|
["Vonani", "Behold"],
|
|
|
["Vulani", "Speak Volumes"],
|
|
|
["Vurhonga", "Dawn"],
|
|
|
["Vutlhari", "Wisdom"],
|
|
|
["Vutsonga", "Dawn"],
|
|
|
["Vutomi", "Life"],
|
|
|
["Werhu", "Ours"],
|
|
|
["Xisungulo", "The Beginning"],
|
|
|
["Xihlamariso", "Surprise"],
|
|
|
["Xikombiso", "Example"],
|
|
|
["Xilombe", "Sweet Voice"],
|
|
|
["Xiluvelo", "Shrine"],
|
|
|
["Xitshembiso", "Promise"],
|
|
|
["Xivono", "Vision"],
|
|
|
["Yerhu", "Ours"]
|
|
|
];
|
|
|
var nm3 = ["Baloi", "Baloyi", "Bila", "Bilankulu", "Burheni", "Bvuma", "Chabane", "Chauke", "Chavalala", "Chavani", "Chissano", "Cuma", "Dumela", "Fungheni", "Helani", "Hlatshwayo", "Hlungwani", "Jeleni", "Khosa", "Maakana", "Mabasa", "Maboko", "Mabunda", "Mabuza", "Maceke", "Macevele", "Machel", "Machimani", "Madjozi", "Magadzi", "Magagani", "Magoda", "Magomani", "Magubane", "Mahumani", "Majimisi", "Makaneta", "Makasela", "Makhense", "Makhuva", "Makhuvele", "Makumbani", "Malenga", "Malubani", "Maluleke", "Malumbe", "Malumbete", "Malungani", "Manganyi", "Manyike", "Manyisa", "Mapimele", "Marhanele", "Marilele", "Marima", "Marivate", "Mashaba", "Mashila", "Mashimbyi", "Masiya", "Masuluke", "Masungwini", "Maswanganyi", "Mathale", "Mathebula", "Matsilele", "Matsimbi", "Mavasa", "Mavundza", "Mawila", "Maxakadzi", "Maxava", "Maxila", "Maximbye", "Maximbyi", "Mayengani", "Mayevhu", "Mazuze", "Mbhiza", "Mbhokota", "Mboweni", "Mhangani", "Mhangwani", "Mhinga", "Minyuku", "Miyambu", "Modiadie", "Moyana", "Mukhomi", "Munisi", "Mutileni", "Ngomani", "Ngoveni", "Ntsanwisi", "Nukeri", "Nyakane", "Nzima", "Rikhotso", "Risenga", "Rivombo", "Shilowa", "Shilubana", "Shivambu", "Simbine", "Sithole", "Sono", "Tsan'wisi", "Xigalo", "Xilenge", "Xiluvani", "Xirilele", "Xirimani", "Xirindza", "Xitsoni", "Xivambu", "Xondlani"];
|
|
|
var br = "";
|
|
|
$('#placeholder').css('textTransform', 'capitalize');
|
|
|
var tp = type;
|
|
|
var element = document.createElement("div");
|
|
|
element.setAttribute("id", "result");
|
|
|
for (i = 0; i < 10; i++) {
|
|
|
rnd2 = Math.random() * nm3.length | 0;
|
|
|
if (tp === 1) {
|
|
|
rnd = Math.random() * nm2.length | 0;
|
|
|
names = nm2[rnd][0] + " " + nm3[rnd2] + " (" + nm2[rnd][1] + " )";
|
|
|
nm2.splice(rnd, 1);
|
|
|
} else if (tp === 2) {
|
|
|
rnd = Math.random() * nm4.length | 0;
|
|
|
names = nm4[rnd][0] + " " + nm3[rnd2] + " (" + nm4[rnd][1] + " )";
|
|
|
nm4.splice(rnd, 1);
|
|
|
} else {
|
|
|
rnd = Math.random() * nm1.length | 0;
|
|
|
names = nm1[rnd][0] + " " + nm3[rnd2] + " (" + nm1[rnd][1] + " )";
|
|
|
nm1.splice(rnd, 1);
|
|
|
}
|
|
|
nm3.splice(rnd2, 1);
|
|
|
br = document.createElement('br');
|
|
|
element.appendChild(document.createTextNode(names));
|
|
|
element.appendChild(br);
|
|
|
}
|
|
|
if (document.getElementById("result")) {
|
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
|
}
|
|
|
document.getElementById("placeholder").appendChild(element);
|
|
|
}
|