/* a person generator */ public class Generator{ //Percent chance that a person will be added to the line every minute private static final double PERCENT = 0.2; //helper function to randomly pick a direction private Person newPerson(int time){ double d = Math.random(); if(d<0.5)return new Person(0, time); return new Person(1, time); } //addPeople can add people to the queues //all newly instatiated People should use the provided time parameter public void addPeople(Queue line, int time){ //for each street we randomly decide to add a Person if(Math.random()