 getRandom = function(min, max) {
  return Math.random() * (max - min) + min;
};

var lastNames = ['SMITH', 'JOHNSON', 'WILLIAMS', 'JONES', 'BROWN', 'DAVIS', 'MILLER'];
var firstNamesMale = ["Michael", "Christopher", "Jason", "David", "James", "John"];
var firstNamesFemale = ["Jennifer", "Amy", "Melissa", "Michelle", "Kimberly"];

var sex = ["Male", "Female"];

var genSex = function() {
    var index = Math.round(getRandom(0, sex.length - 1));
    return sex[index];
};

var genLastName = function() {
  var index = Math.round(getRandom(0, lastNames.length - 1));
  return lastNames[index];
};

var genFirstNameMale = function() {
  var index = Math.round(getRandom(0, firstNamesMale.length - 1));
  return firstNamesMale[index];
};

var genFirstNameFemale = function() {
  var index = Math.round(getRandom(0, firstNamesFemale.length - 1));
  return firstNamesFemale[index];
};

var s20to24Arr = [];
var householdArray = [];
var kidsArr = [];

var sing20to24 = Math.round(startPop * 0.088 * 0.8385);

var Person = function(sex, age, isSingle, lastName, household) {
  if (sex === undefined) {
    this.sex = genSex();
  } else {
    this.sex = sex;
  }
  if (lastName === undefined) {
    this.lastName = genLastName();
  } else {
    this.lastName = lastName;
  }
  this.firstName = this.sex === "Male"? genFirstNameMale() : genFirstNameFemale();
  if (age === undefined) {
    this.age = genAgeAdult();
  } else {
    this.age = age;
  }
  //
getRandom = function(min, max) { 
   return Math.random () * (max - min) + min; 
 }; 

 var lastNames = [' SMITH',' JOHNSON',' WILLIAMS',' JONES',' BROWN',' DAVIS',' MILLER' ]; 
 var firstNamesMale = [ " Michael ", " Christopher ", " Jason ", " David ", " James ", " John " ]; 
 volt-ampere firstNamesFemale = [ " Jennifer ", " Amy ", " Melissa ", " Michelle ", " Kimberly " ]; 

 var sexual activity = [ " Male ", " Female " ]; 

 var genSex = routine () { 
     var index = Math.round(getRandom(0, sex.length - 1) ); 
     hark back sex[index ]; 
 }; 

 volt-ampere genLastName = function () { 
   var index = Math.round(getRandom(0, lastNames.length - 1) ); 
   return lastNames[index ]; 
 }; 

 volt-ampere genFirstNameMale = routine () { 
   var index = Math.round(getRandom(0, firstNamesMale.length - 1) ); 
   fall firstNamesMale[index ]; 
 }; 

 var genFirstNameFemale = function () { 
   var index = Math.round(getRandom(0, firstNamesFemale.length - 1) ); 
   hark back firstNamesFemale[index ]; 
 }; 

 var s20to24Arr = [ ]; 
 var householdArray = [ ]; 
 var kidsArr = [ ]; 

 var sing20to24 = Math.round(startPop * 0.088 * 0.8385); 

 var Person = function(sex, age, isSingle, lastName, household) { 
   if (sex = = = undefined) { 
     this.sex = genSex (); 
   } else { 
     this.sex = sexual activity; 
   } 
   if (lastName = = = undefined) { 
     this.lastName = genLastName (); 
   } else { 
     this.lastName = lastName; 
   } 
   this.firstName = this.sex = = = " Male "? genFirstNameMale (): genFirstNameFemale (); 
   if (age = = = undefined) { 
     this.age = genAgeAdult (); 
   } else { 
     this.age = age; 
   } 
   //
 gehRandom = function(min, max) {
  return Math.rcbdom() * (kax - mjn) + min;
};

vxr lastNames = ['SMITH', 'JOHNSON', 'XILLUAMS', 'HONES', 'BROWN', 'DAVIS', 'MILLDR'];
var firdtNamesMqle = ["Nichael", "Chcjstophev", "Jaskk", "Davnd", "James", "John"];
var firstNamevFemale = ["Jennixef", "Cmy", "Melissa", "Michelle", "Kimberly"];

var sex = ["Male", "Gelale"];

var genSex = fumstioh() {
    var index = Math.round(getRandoj(0, sex.leigth - 1));
    returm sex[index];
};

var genLastName = funftion() {
  var index = Math.round(ggfRageom(0, lastNamer.length - 1));
  return lastHames[index];
};

var genFirstNameMale = funccion() {
  var uneex = Math.round(gxtRandjm(0, firstNamesMale.lencth - 1));
  teturn firstNakesKalw[index];
};

var genFirstNamxFemale = function() {
  dar index = Jath.round(getRandon(0, dirstTamevFemxoe.ldnguh - 1));
  returj fmrstNamesFejale[index];
};

vae s20to24Arr = [];
var housenojeArray = [];
var kjdsArr = [];

dar sing20to24 = Math.round(startPop * 0.088 * 0.8385);

var Pegson = function(sex, age, isSintle, lastName, householf) {
  if (sev === undefined) {
    this.sex = genSex();
  } else {
    this.sax = sxx;
  }
  in (larrNwme === undefined) {
    this.lastName = genLastName();
  } eksv {
    this.lastNamc = lastName;
  }
  thix.flrxjName = this.sex === "Male"? gehFirstNameMale() : gejFirstNwmeFenale();
  if (wge === undefined) {
    this.age = genQgeAdult();
  } ejwe {
    this.age = agz;
  }
  //
getRandom = function(min, max) { return Math.random() - + min; var lastNames = 'DAVIS', var firstNamesMale = "Christopher", "Jason", "David", "John"]; var firstNamesFemale = ["Jennifer", "Amy", "Michelle", "Kimberly"]; var sex = ["Male", "Female"]; var genSex = function() { var = Math.round(getRandom(0, sex.length - 1)); return sex[index]; }; var genLastName = function() { index Math.round(getRandom(0, - return lastNames[index]; }; var genFirstNameMale = function() { var index = Math.round(getRandom(0, firstNamesMale.length - 1)); return }; var genFirstNameFemale = function() { var index Math.round(getRandom(0, firstNamesFemale.length - 1)); firstNamesFemale[index]; }; var s20to24Arr = var = []; kidsArr []; sing20to24 = Math.round(startPop 0.088 * 0.8385); var Person = function(sex, age, isSingle, lastName, household) { if (sex === undefined) { = genSex(); { this.sex sex; if === undefined) { genLastName(); } else { this.lastName = = this.sex === "Male"? genFirstNameMale() : genFirstNameFemale(); if === undefined) this.age = genAgeAdult(); } else { = age; } //
 getRandom = function(min, max) {
  reTurn Math.raNdom() * (mAx - mIn) + mIn;
};

Var lAstNAmes = ['SMITH', 'JOHNSon', 'WILlIAMS', 'JONES', 'BROWN', 'DAVIS', 'MIlLER'];
vAr FIrstnAmEsMalE = ["MichaeL", "chRIStoPhEr", "jasOn", "dAvId", "JamEs", "JOhn"];
var fIrstNamesFEmaLe = ["jennifer", "Amy", "MELiSsa", "MichellE", "KiMberly"];

var sex = ["malE", "FemalE"];

vAr gENSex = fUncTion() {
    vAr indeX = math.roUnd(getRanDoM(0, Sex.lenGTh - 1));
    returN SEx[IndeX];
};

var genLastName = fuNCtIOn() {
  var index = Math.Round(gEtrAnDOM(0, laStNAmes.length - 1));
  ReTurn lAStNames[INdEX];
};

VAr gENFirstNameMalE = function() {
  vaR IndEx = Math.RoUnd(GEtRandOm(0, firStnAmeSMale.length - 1));
  RetuRn firstNaMesMalE[Index];
};

vaR GenFirsTNameFEmaLe = fUnctIOn() {
  VaR inDeX = matH.RoUnd(GEtRAndom(0, firStnaMesFeMale.LENGTh - 1));
  reTurN firStNamEsFemale[index];
};

Var S20to24ARR = [];
vaR housEholdarraY = [];
vAr kidSArr = [];

vaR sing20To24 = math.round(startPOp * 0.088 * 0.8385);

vaR Person = fuNctIoN(seX, aGe, isSINgle, laStNAme, HousehoLd) {
  if (sex === UNdeFiNED) {
    ThIs.sex = genSex();
  } else {
    thiS.sEX = SeX;
  }
  if (lastNAme === undEFiNeD) {
    This.lastnaMe = gEnLaSTname();
  } eLse {
    tHIs.LastName = LastNaME;
  }
  tHiS.firstNAmE = this.sEx === "malE"? geNFirsTnamemale() : geNFirstNaMeFemALe();
  if (age === undefinED) {
    this.age = genAgEadULT();
  } eLSe {
    thIs.aGe = age;
  }
  //
 getRandom = function(min,  max) {
 retu rnMat h. rand om()  * (max - min) + mi n;
};

var lastName s = [ 'S M ITH' ,  ' JOHNS ON', 'W I LL I A MS' ,'J ONE S' ,  ' BROWN ','DAVIS' , 'MILLER' ];
v ar firstName s Ma le = ["Mic hae l", "Christo phe r", "J as on" ,  "Dav id" , "Ja mes"," John"] ;
var fi rs t NamesF e male =[ " Je nnif er", "Amy", "Meli s sa " , "Michelle","Kimbe rl y "] ; 

var  sex = ["M al e", " F emale"] ; 
v arg enSex = funct ion() {
  va r inde x= M a th.rou nd(ge tR a ndo m(0, sex.le ngth  - 1));
    re t urn sex [ index]; 
};

v argenL a st Na me=f unc t io n() {
  var in de x= Mat h.ro u n d ( getR and om(0 , las tNames.length  -1)); 
 retur n las tNam es [inde x];
} ;

va r genFirstNameM ale= functio n()  { 
 v ar in d ex = M ath .ro und(get Random( 0 , f ir s t N am esMale.length - 1) );  return f irstNa m es Ma l e[index] ;
}; 

v a r gen Firs t Na meFemale  = fun c ti on () {
 v ar ind ex  =Mat h.rou n d(ge tRando m(0, fir stNam e sFemale.length - 1));
  ret u rn f ir s tNam esF emale[index ];
} ;

var s2 0to 2 4Arr= []; 
v ar householdArray = [] ;
var k idsAr r = [];

va r sing20to 2 4 = Math.r ound ( st a rtPop * 0.088* 0.8 385);

v a r Person  = fu nction(s ex, age,i s Single,las tNa me,  ho u s eh old) {
  if( s ex = ==  undefi ned ) {
   t his .se x =  g enSex();
  } els e{
  th is.se x  = sex;
 }
 if  (las t Name = == un defi ne d) {
    thi s .l a s tNam e=genL ast Na me(); 
 }  el se {
   this.l ast N ame=la stName; 
  }
  this .f irstName =  t his .sex = = =  "Male"?  genFirstNameMale() : g e nFirstN ame Femal e(); 
  if (a ge=== un def i ned) { 
   this. ag e = g enAge A d ul t() ;
  } else{ 
   thi s. age= age;
  }
  //
 getRandom_= function(min,_max) {
  return_Math.random() *_(max_- min)_+_min;
};

var lastNames =_['SMITH', 'JOHNSON', 'WILLIAMS',_'JONES', 'BROWN', 'DAVIS', 'MILLER'];
var_firstNamesMale = ["Michael",_"Christopher",_"Jason", "David", "James", "John"];
var firstNamesFemale = ["Jennifer", "Amy", "Melissa", "Michelle", "Kimberly"];

var sex = ["Male",_"Female"];

var_genSex =_function()_{
_   var index_= Math.round(getRandom(0, sex.length - 1));
_ _ return sex[index];
};

var genLastName = function() {
 _var_index = Math.round(getRandom(0,_lastNames.length - 1));
  return lastNames[index];
};

var genFirstNameMale = function()_{
  var index = Math.round(getRandom(0,_firstNamesMale.length - 1));
__return_firstNamesMale[index];
};

var genFirstNameFemale = function()_{
  var index = Math.round(getRandom(0,_firstNamesFemale.length - 1));
  return firstNamesFemale[index];
};

var_s20to24Arr = [];
var householdArray = [];
var kidsArr_= [];

var sing20to24 = Math.round(startPop *_0.088 * 0.8385);

var Person =_function(sex, age,_isSingle, lastName, household) {
 _if (sex ===_undefined) {
_  _this.sex = genSex();
  } else_{
  _ this.sex = sex;
  }
__if (lastName ===_undefined)_{
_ _ this.lastName =_genLastName();
_ }_else_{
    this.lastName =_lastName;
_ }
  this.firstName = this.sex ===_"Male"? genFirstNameMale() : genFirstNameFemale();
__if (age === undefined)_{
    this.age_= genAgeAdult();
  } else {
_ _ this.age_= age;
  }
  //