/** 
 *  _   _        _  _                           _             
 * | |_| |  ___ | || |  ___   __ _  _ __  _ __ (_)  ___  _ __ 
 * |  _  | / _ \| || | / __| / _` || '__|| '__|| | / _ \| '__|
 * | | | ||  __/| || || (__ | (_| || |   | |   | ||  __/| |   
 * |_| |_| \___||_||_| \___| \__,_||_|   |_|   |_| \___||_|   
 * 
 *  (c) 2001 Free Lunch Design, Teknisk-IT, AerotechTelub
 *			  http://www.freelunchdesign.com
 * 
 * This source code is released as is under GPL (General Public
 * License). Please refer to license.txt for more information.
 * 
 */
 
#include <stdio.h>
#include "allegro.h"
#include "name.h"

#define NUM_FIRST	40
#define NUM_LAST	40

char *fname[] = {
	"Anita", "Bessy", "Catlin", "Doreen",
	"Fianna", "Inga", "Josee", "Lorain",
	"Aaron", "Adam", "Buckie", "Cassius",
	"Dexter", "Erik", "Fergus", "Gerome",
	"Harrison", "Ike", "Jared", "Kasper",
	"Lester", "Mac", "Moritz", "Nicolas",
	"Orville", "Pascal", "Quentin", "Theodor",
	"Ragnar", "Reese", "Sancho", "Skippy",
	"Vance", "Wilbur", "Zach", "Zeb",
	"Kevin", "Claiborne", "Cyrus", "Gibby"
};

char *lname[] = {
	"Keilty", "Kong", "Lojewski", "Delahay",
	"Barnes", "Tham", "Tessler", "Smith", 
	"Abernathy", "Adams", "Berndt", "Boggs", 
	"Cantwell", "Campbell", "Cottingham", "Crowe", 
	"Grenon", "Gribbon", "Haack", "Hansson", 
	"Irvin", "Jawanda", "Jefferson", "Keifer", 
	"Kellerman", "Larue", "Lovell", "Lightfoot",
	"MacMillan", "Mullins", "Obrien", "Osborne",
	"Pierret", "Quelch", "Rewitzer", "Savino",
	"Soong", "Valerio", "Twyver", "Wasylenko",
};

void get_random_name(char *dest) {
	int f = rand()%NUM_FIRST;
	int l = rand()%NUM_LAST;

	if (rand()%1000<20) 
		sprintf(dest, "%s %c. %s", fname[f], 65+rand()%25, lname[l]);
	else
		sprintf(dest, "%s %s", fname[f], lname[l]);
}
