-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrandom.cpp
More file actions
49 lines (42 loc) · 12.1 KB
/
Copy pathrandom.cpp
File metadata and controls
49 lines (42 loc) · 12.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <string>
#include "validacion.h"
/*
datos fake para los proyectos, generalmente cuando nos piden ingresar información
podemos usar esto en su lugar para agilizar el proceso
*/
// Bases de datos
std::string NOMBRES[100] = {"Forrest", "Mahmud", "Rosella", "Risa", "Katee", "Bonnibelle", "Germana", "Maximilian", "Booth", "Joly", "Luciana", "Adolph", "Freemon", "Siegfried", "Harper", "Nikolas", "Marris", "Torrance", "Viola", "Shandy", "Craggy", "Bethany", "Jewell", "Saxe", "Eldredge", "Elsa", "Gweneth", "Gerrie", "Bat", "Randall", "Trumaine", "Ed", "Stacie", "Roanna", "Rozalin", "Lexie", "Hebert", "Elinore", "Bear", "Mellisa", "Darcee", "Ari", "Carleen", "Van", "Fifine", "Minny", "Elmo", "Norina", "Adi", "Pepita", "Eloisa", "Josee", "Julita", "Gilbert", "Anatollo", "Harman", "Bill", "Waylan", "Brigham", "Kelila", "Auroora", "Mano", "Fayette", "Clo", "Rora", "Almeta", "Elwira", "Hugibert", "Jake", "Olimpia", "Pete", "Mikaela", "Ollie", "Phillipe", "Loralee", "Aggi", "Sandi", "Chelsy", "Laird", "Giselbert", "Clarissa", "Marylinda", "Leesa", "Perry", "Roxanna", "Fidelia", "Leticia", "Jenna", "Josefina", "Alli", "Robinette", "Janessa", "Adolphe", "Freddie", "Helene", "Culver", "Sylvia", "Ardith", "Rafaela", "Yetty"};
std::string EMPRESAS[100] = {"Eare", "Centidel", "Browsedrive", "Agimba", "Browsetype", "Buzzdog", "Eazzy", "Babbleopia", "Brainsphere", "Feedmix", "Brightdog", "Abatz", "Eamia", "Buzzster", "Avamba", "Feedfire", "Aivee", "Feedspan", "Feedfish", "Devify", "Browsebug", "Blogtag", "Demivee", "Brainlounge", "Feednation", "Eimbee", "Divanoodle", "Bluezoom", "Buzzbean", "Dablist", "Brightbean", "Dynabox", "Fivespan", "Bluejam", "Fanoodle", "Blognation", "Browsezoom", "Bubbletube", "Cogidoo", "Dabtype", "BlogXS", "Cogilith", "Camimbo", "Dynazzy", "Divavu", "Centizu", "Aimbo", "Fatz", "Dynava", "Centimia", "Einti", "Edgeblab", "Demizz", "Buzzshare", "Eidel", "Ainyx", "Babbleblab", "Dabjam", "Eadel", "Blogtags", "Devpoint", "Devshare", "Ailane", "Browsecat", "Edgeclub", "Cogibox", "Eabox", "Fivebridge", "Chatterbridge", "Avavee", "Camido", "Aibox", "Avamm", "Brainverse", "Edgepulse", "Babbleset", "Devbug", "Dabfeed", "Dabvine", "Aimbu", "DabZ", "Flashdog", "Abata", "Browseblab", "Flashpoint", "Edgetag", "Eire", "Avaveo", "Fivechat", "Brainbox", "Divape", "Eayo", "Edgeify", "Fiveclub", "Feedbug", "Devpulse", "Chatterpoint", "Digitube", "Devcast", "Blogspan"};
std::string PAISES[100] = {"South Korea", "Yemen", "Slovenia", "Georgia", "Mongolia", "Ireland", "Luxembourg", "Peru", "Australia", "Bonaire, Saint Eustatius and Saba ", "Iran", "Poland", "Bulgaria", "Tunisia", "Nepal", "Haiti", "Dominican Republic", "Bangladesh", "Somalia", "Montenegro", "Afghanistan", "Kosovo", "Finland", "Senegal", "Nigeria", "Uzbekistan", "Morocco", "United Kingdom", "Guyana", "Cuba", "Venezuela", "Armenia", "Democratic Republic of the Congo", "Micronesia", "Sri Lanka", "Madagascar", "Eritrea", "France", "Czech Republic", "Indonesia", "Palestinian Territory", "Iraq", "Bolivia", "Mexico", "Mali", "French Polynesia", "Vietnam", "Argentina", "Estonia", "Angola", "Egypt", "Serbia", "Denmark", "Uganda", "Botswana", "Cameroon", "Colombia", "Malta", "Malaysia", "Pakistan", "Moldova", "Germany", "Libya", "Croatia", "Swaziland", "Ukraine", "Namibia", "Gambia", "Uruguay", "Belarus", "Ivory Coast", "Portugal", "Macedonia", "Norway", "Brazil", "Tanzania", "Philippines", "Barbados", "Niger", "Greece", "Kuwait", "New Zealand", "El Salvador", "Thailand", "Ethiopia", "Cambodia", "Hungary", "East Timor", "Lesotho", "Costa Rica", "Israel", "Kenya", "Jordan", "Honduras", "China", "Guinea", "Tajikistan", "Russia", "Kyrgyzstan", "Kazakhstan"};
std::string EMAILS[100] = {"hmacgoun64@storify.com", "swinterburn2j@businessweek.com", "cmctaggart5@yandex.ru", "dcornnerg2@un.org", "ssteadman2x@vkontakte.ru", "plempertzg9@globo.com", "pparmintero0@about.com", "wpashenkovqi@google.de", "glaymanjo@hatena.ne.jp", "ayakovliv8o@stanford.edu", "tdenajerak0@ibm.com", "edunbabin31@virginia.edu", "gambroixo7@cbslocal.com", "mliffe8a@marriott.com", "bvaughanan@gnu.org", "ccammock47@mayoclinic.com", "wcampaignejz@economist.com", "fbrandom4k@a8.net", "gcarletonip@nyu.edu", "gtourvillem8@japanpost.jp", "mpeticanb7@wired.com", "cucceli81@mysql.com", "wrossitere2@symantec.com", "tcaddanf0@seesaa.net", "bsabattierge@mediafire.com", "bfranciotti7v@slate.com", "iconfaitk6@soup.io", "scatherallfp@hp.com", "efolk5c@springer.com", "santonnikovab@amazonaws.com", "btaftqj@privacy.gov.au", "bsterteq8@pbs.org", "jgreystockfq@baidu.com", "csedger7z@amazon.com", "dwillmoreeh@mayoclinic.com", "amckellochnu@wiley.com", "tedinboroi3@prnewswire.com", "adauntera8@cnet.com", "cmolinesoa@prlog.org", "jwilcocks5e@nydailynews.com", "cthurstaner@chron.com", "jhatwellcl@bluehost.com", "wmacleese5p@bandcamp.com", "abonning@ustream.tv", "gpittam7e@zimbio.com", "btallentcf@redcross.org", "mfolshomb@imgur.com", "djanaudqa@cyberchimps.com", "gfoxenis@berkeley.edu", "rhart2q@imgur.com", "tjeannel2u@archive.org", "khofleri2@fotki.com", "bjirasdl@bizjournals.com", "wproshky@over-blog.com", "apooly3o@un.org", "vborgbartolo1j@gravatar.com", "cmattholie44@salon.com", "gpetraslm@msn.com", "nandriessen8@symantec.com", "earthurs4l@diigo.com", "creyburn9l@cnn.com", "gmaccreepb@netscape.com", "bgemelli20@tripod.com", "usuffield55@accuweather.com", "aboggisnw@nih.gov", "esketcher3d@washington.edu", "hphythien52@istockphoto.com", "cshermaniv@google.com.au", "fwordsworthi8@senate.gov", "alammengaon@yolasite.com", "jmolerm@washingtonpost.com", "cpoehz@tamu.edu", "elakin5d@sohu.com", "bmungan7@sitemeter.com", "uduberry8z@timesonline.co.uk", "qtaye5i@de.vu", "aelliotb8@sun.com", "jtennynl@github.io", "kandrivel9@seesaa.net", "mshackladyic@uol.com.br", "bsantellobt@cisco.com", "welmar3e@pen.io", "alaborda6n@com.com", "amcgranebu@wikispaces.com", "lfaldoqg@posterous.com", "aandreuhj@un.org", "flearmountbr@ucoz.com", "rlarchierea@pbs.org", "cfrankemab3@youtu.be", "rburmandw@flickr.com", "tphillcockpw@gravatar.com", "wtighe7p@creativecommons.org", "wcaulketgo@theguardian.com", "bkalberer2o@moonfruit.com", "coveyg3@vkontakte.ru", "npoutressm1@qq.com", "aaartsen4q@studiopress.com", "sadamecrr@storify.com", "elegendregr@state.gov", "enehlgf@kickstarter.com"};
std::string PELICULAS[100] = {"Big Hero 6", "That Thing You Do!", "Flamingo Road", "Perfect Human, The (Perfekte Menneske, Det)", "Living in Emergency: Stories of Doctors Without Borders", "Man on Fire", "Battleground", "Haunted Mansion, The", "Bill Burr: Let It Go", "Marwencol", "Shiver of the Vampires, The (Frisson des vampires, Le)", "Charlie Chan at Monte Carlo", "Vera Cruz", "Highway Racer", "Mothman Prophecies, The", "Final Darkness, The (Buio Omega)", "Fright Night", "How to Meet Girls from a Distance", "Phantom, The", "Few Good Men, A", "Panda! Go Panda! Rainy Day Circus", "Pocahontas II: Journey to a New World ", "Trilogy: The Weeping Meadow (Trilogia: To livadi pou dakryzei)", "Guess Who's Coming to Dinner", "Scar", "Tyler Perry's Diary of a Mad Black Woman", "Cambridge Spies", "Ace of Aces (a.k.a. Super Ace, The) (As des as, L')", "Resident Evil: Damnation", "Cold Prey III (Fritt Vilt III)", "Missionary Man", "Last House on the Left, The", "That Hamilton Woman", "Goebbels Experiment, The (Das Goebbels Experiment)", "Red Psalm (Még kér a nép)", "Manhattan Project, The", "Three Strangers", "Cesar & Rosalie (César et Rosalie)", "Signal, The (Señal, La)", "Five-Year Engagement, The", "Killer Inside Me, The", "Querelle", "Shocker", "Lover Come Back", "Occupants, The", "Dersu Uzala", "Mummy's Hand, The", "Worth Winning", "The Bone Snatcher", "Flight of the Navigator", "Strip-tease", "Millhaven", "Journey to Italy (Viaggio in Italia) (Voyage to Italy) (Voyage in Italy)", "Honky Tonk Freeway", "In Her Shoes", "Looney Tunes: Back in Action", "Fantastic Four: Rise of the Silver Surfer", "Dirt Bike Kid, The", "Too Early, Too Late (Trop tôt, trop tard)", "Passion Play", "Camila", "Petulia", "Beyond the Fear", "Bigger Than Life", "Besa (Solemn Promise)", "Yi Yi", "Shopworn Angel, The", "Wankers, The (Les branleuses)", "Glass Menagerie, The", "Paper Man", "Dark Half, The", "Last of the Mohicans, The", "Mountain Men, The", "Petting Zoo", "Ingeborg Holm", "Between Miracles", "Emperor", "Fans", "Black and White in Color (Noirs et blancs en couleur)", "Mr. Smith Goes to Washington", "Sherlock Holmes and the Voice of Terror", "Devdas", "Squaw Man, The", "Live and Become (Va, vis et deviens)", "Wolves", "Shadows and Fog", "Great Beauty, The (Grande Bellezza, La)", "Meet Me at the Fair", "Return of the Fly", "My Gun is Quick", "Don't Go In the Woods", "Short Eyes", "The Hire: Chosen", "Addams Family Values", "Riot on Sunset Strip", "Meatballs 4", "Once Upon a Time in Mexico", "The Second Best Exotic Marigold Hotel", "After the Life", "Bloodline"};
std::string TRABAJOS[100] = {"Programmer IV", "Design Engineer", "Web Developer IV", "Health Coach II", "Graphic Designer", "Payment Adjustment Coordinator", "Developer I", "Registered Nurse", "Programmer III", "Assistant Media Planner", "Senior Developer", "Biostatistician IV", "Technical Writer", "Engineer I", "Research Assistant II", "Desktop Support Technician", "Office Assistant IV", "Actuary", "Civil Engineer", "Speech Pathologist", "Administrative Assistant I", "Quality Control Specialist", "Product Engineer", "Automation Specialist III", "Media Manager I", "Associate Professor", "Analog Circuit Design manager", "Senior Sales Associate", "Social Worker", "Physical Therapy Assistant", "Account Representative I", "Web Designer I", "Recruiter", "Staff Accountant II", "Biostatistician I", "Statistician II", "Human Resources Assistant III", "Account Representative III", "Nuclear Power Engineer", "VP Product Management", "Safety Technician I", "Developer IV", "Senior Editor", "Human Resources Assistant I", "Dental Hygienist", "Legal Assistant", "Office Assistant II", "Account Coordinator", "Chief Design Engineer", "Automation Specialist I", "Recruiting Manager", "Community Outreach Specialist", "Health Coach I", "Geologist IV", "Statistician I", "Information Systems Manager", "Human Resources Assistant II", "Staff Accountant III", "Media Manager IV", "Executive Secretary", "VP Quality Control", "Environmental Tech", "Accounting Assistant I", "Computer Systems Analyst III", "Biostatistician II", "Accountant IV", "Senior Quality Engineer", "Structural Engineer", "Financial Analyst", "Research Assistant I", "Administrative Officer", "Compensation Analyst", "Health Coach IV", "Accountant II", "Accountant III", "Software Engineer IV", "Programmer Analyst I", "Financial Advisor", "Account Representative IV", "Internal Auditor", "Clinical Specialist", "Software Test Engineer IV", "Pharmacist", "Staff Scientist", "Assistant Professor", "Statistician IV", "Staff Accountant I", "Sales Representative", "Tax Accountant", "Web Developer III", "Marketing Manager", "Sales Associate", "Media Manager III", "Systems Administrator I", "Automation Specialist IV", "Human Resources Assistant IV", "Engineer II", "Software Engineer III", "Budget/Accounting Analyst III", "VP Accounting"};
// Elige un valor random de las bases de datos
std::string aleatorio(std::string base_de_datos[]) {
return base_de_datos[rand()%100];
}
int numero_aleatorio(int min, int max) {
return min + rand()%(max - min);
}
/**
Genera una fecha aleatoria entre los años, meses y dias especificados
*Recordar que primero se especifica el maximo y luego el minimo*
Ejemplos:
@code
fecha_aleatoria(1940) // genera una fecha con años entre 0-1940
fecha_aleatoria(311, -100) // genera una fecha con años entre -100-311
fecha_aleatoria(2030, 1970, 5) // años entre 1970-2030 y hasta el mes 5
fecha_aleatoria(2010, 1990, 12, 6, 31, 15) // años entre 1990-2010, los ultimos 6 meses y 15 dias de cada mes
@endcode
*/
Fecha fecha_aleatoria(int anio_max = 2030, int anio_min = 0, int mes_max = 12, int mes_min = 1, int dia_max = 31, int dia_min = 1) {
Fecha fec;
do {
fec = Fecha(
numero_aleatorio(dia_min, dia_max),
numero_aleatorio(mes_min, mes_max),
numero_aleatorio(anio_min, anio_max)
);
} while (!validar_fecha(fec));
return fec;
}