1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2024-12-22 15:51:11 +00:00

first commit of scenario generator

This commit is contained in:
Amalvy Arthur 2018-06-18 16:32:53 +02:00
parent 1fb5817935
commit 76f0c2e0ed
3 changed files with 543 additions and 0 deletions

43
Scripts/generate.pl Normal file
View File

@ -0,0 +1,43 @@
use strict;
use warnings;
use List::Util qw/shuffle/;
my $visitors_db_filename = "visitors.db";
my $residents_db_filename = "residents.db";
my @visitors = ();
my @residents = ();
my $total_nb = $ARGV[0];
my $visitors_nb = $ARGV[0]; #todo : calculer
my $residents_nb = $ARGV[1];
my $output_file_name = $ARGV[2] eq "" ? "out" : $ARGV[2];
open(my $visitors_db_file, $visitors_db_filename) or die "Error : no visitors database found \n";
open(my $residents_db_file, $residents_db_filename) or die "Error : no residents database found \n";
while(my $line = <$visitors_db_file>){
#chomp($line);
push(@visitors, $line);
}
while(my $line = <$residents_db_file>){
#chomp($line);
push(@residents, $line);
}
die "Database is not big enough for $visitors_nb visitors\n" if @visitors < $visitors_nb;
die "Database is not big enough for $residents_nb residents" if @residents < $residents_nb;
@visitors = shuffle(@visitors);
@residents = shuffle(@residents);
open(my $output_file, '>'.$output_file_name) or die "Error : couldn't create output file.";
for(my $i = 0; $i < )
foreach (@visitors){
print;
}
close $visitors_db_file;
close $residents_db_file;

250
Scripts/residents.db Normal file
View File

@ -0,0 +1,250 @@
Emma
Olivia
Ava
Isabella
Sophia
Mia
Charlotte
Amelia
Evelyn
Abigail
Harper
Emily
Elizabeth
Avery
Sofia
Ella
Madison
Scarlett
Victoria
Aria
Grace
Chloe
Camila
Penelope
Riley
Layla
Lillian
Nora
Zoey
Mila
Aubrey
Hannah
Lily
Addison
Eleanor
Natalie
Luna
Savannah
Brooklyn
Leah
Zoe
Stella
Hazel
Ellie
Paisley
Audrey
Skylar
Violet
Claire
Bella
Aurora
Lucy
Anna
Samantha
Caroline
Genesis
Aaliyah
Kennedy
Kinsley
Allison
Maya
Sarah
Madelyn
Adeline
Alexa
Ariana
Elena
Gabriella
Naomi
Alice
Sadie
Hailey
Eva
Emilia
Autumn
Quinn
Nevaeh
Piper
Ruby
Serenity
Willow
Everly
Cora
Kaylee
Lydia
Aubree
Arianna
Eliana
Peyton
Melanie
Gianna
Isabelle
Julia
Valentina
Nova
Clara
Vivian
Reagan
Mackenzie
Madeline
Brielle
Delilah
Isla
Rylee
Katherine
Sophie
Josephine
Ivy
Liliana
Jade
Maria
Taylor
Hadley
Kylie
Emery
Adalynn
Natalia
Annabelle
Faith
Alexandra
Ximena
Ashley
Brianna
Raelynn
Bailey
Mary
Athena
Andrea
Leilani
Jasmine
Lyla
Margaret
Alyssa
Adalyn
Arya
Norah
Khloe
Kayla
Eden
Eliza
Rose
Ariel
Melody
Alexis
Isabel
Sydney
Juliana
Lauren
Iris
Emerson
London
Morgan
Lilly
Charlie
Aliyah
Valeria
Arabella
Sara
Finley
Trinity
Ryleigh
Jordyn
Jocelyn
Kimberly
Esther
Molly
Valerie
Cecilia
Anastasia
Daisy
Reese
Laila
Mya
Amy
Teagan
Amaya
Elise
Harmony
Paige
Adaline
Fiona
Alaina
Nicole
Genevieve
Lucia
Alina
Mckenzie
Callie
Payton
Eloise
Brooke
Londyn
Mariah
Julianna
Rachel
Daniela
Gracie
Catherine
Angelina
Presley
Josie
Harley
Adelyn
Vanessa
Makayla
Parker
Juliette
Amara
Marley
Lila
Ana
Rowan
Alana
Michelle
Malia
Rebecca
Brooklynn
Brynlee
Summer
Sloane
Leila
Sienna
Adriana
Sawyer
Kendall
Juliet
Destiny
Alayna
Elliana
Diana
Hayden
Ayla
Dakota
Angela
Noelle
Rosalie
Joanna
Jayla
Alivia
Lola
Emersyn
Georgia
Selena
June
Daleyza
Tessa
Maggie
Jessica
Remi
Delaney

250
Scripts/visitors.db Normal file
View File

@ -0,0 +1,250 @@
Liam
Noah
William
James
Logan
Benjamin
Mason
Elijah
Oliver
Jacob
Lucas
Michael
Alexander
Ethan
Daniel
Matthew
Aiden
Henry
Joseph
Jackson
Samuel
Sebastian
David
Carter
Wyatt
Jayden
John
Owen
Dylan
Luke
Gabriel
Anthony
Isaac
Grayson
Jack
Julian
Levi
Christopher
Joshua
Andrew
Lincoln
Mateo
Ryan
Jaxon
Nathan
Aaron
Isaiah
Thomas
Charles
Caleb
Josiah
Christian
Hunter
Eli
Jonathan
Connor
Landon
Adrian
Asher
Cameron
Leo
Theodore
Jeremiah
Hudson
Robert
Easton
Nolan
Nicholas
Ezra
Colton
Angel
Brayden
Jordan
Dominic
Austin
Ian
Adam
Elias
Jaxson
Greyson
Jose
Ezekiel
Carson
Evan
Maverick
Bryson
Jace
Cooper
Xavier
Parker
Roman
Jason
Santiago
Chase
Sawyer
Gavin
Leonardo
Kayden
Ayden
Jameson
Kevin
Bentley
Zachary
Everett
Axel
Tyler
Micah
Vincent
Weston
Miles
Wesley
Nathaniel
Harrison
Brandon
Cole
Declan
Luis
Braxton
Damian
Silas
Tristan
Ryder
Bennett
George
Emmett
Justin
Kai
Max
Diego
Luca
Ryker
Carlos
Maxwell
Kingston
Ivan
Maddox
Juan
Ashton
Jayce
Rowan
Kaiden
Giovanni
Eric
Jesus
Calvin
Abel
King
Camden
Amir
Blake
Alex
Brody
Malachi
Emmanuel
Jonah
Beau
Jude
Antonio
Alan
Elliott
Elliot
Waylon
Xander
Timothy
Victor
Bryce
Finn
Brantley
Edward
Abraham
Patrick
Grant
Karter
Hayden
Richard
Miguel
Joel
Gael
Tucker
Rhett
Avery
Steven
Graham
Kaleb
Jasper
Jesse
Matteo
Dean
Zayden
Preston
August
Oscar
Jeremy
Alejandro
Marcus
Dawson
Lorenzo
Messiah
Zion
Maximus
River
Zane
Mark
Brooks
Nicolas
Paxton
Judah
Emiliano
Kaden
Bryan
Kyle
Myles
Peter
Charlie
Kyrie
Thiago
Brian
Kenneth
Andres
Lukas
Aidan
Jax
Caden
Milo
Paul
Beckett
Brady
Colin
Omar
Bradley
Javier
Knox
Jaden
Barrett
Israel
Matias
Jorge
Zander
Derek
Josue
Cayden
Holden
Griffin
Arthur
Leon
Felix
Remington
Jake
Killian
Clayton