package ru.stqa.pft.addressbook.appmanager;

/**
 * Created by gis on 25.11.2016.
 */
public class RandomDataGenerator {
    public int getInt(int min, int max) {
        return min + (int)(Math.random()*(max - min + 1));
    }

    public String getFirstnameEng() {
        String[] firstnames = {"Bob", "Pit", "Sam", "Ted", "Yen"};
        return firstnames[getInt(0, firstnames.length - 1)];
    }

    public String getSurnameEng() {
        String[] surnames = {"Davis", "Doe", "Lee", "Smith", "Tramp"};
        return surnames[getInt(0, surnames.length - 1)];
    }

    public String getAddressEng() {
        String[] litera = {"", "A", "B", "C"};
        String[] streets = {"Baker Street", "Wall Street", "West Road"};
        String[] cities = {"Boston", "Lisboa", "Moscow", "New York", "Roma"};
        return getInt(1, 999) + litera[getInt(0, litera.length - 1)] +
                ", " + streets[getInt(0, streets.length - 1)] +
                ", " + cities[getInt(0, cities.length - 1)];
    }
}

@@ -296,11 +296,57 @@
 = %7B%22
-Bob
+Alex%22, %22Bob%22, %22Elvise%22, %22Glenn%22, %22Henrich%22, %22Jack
 %22, %22
@@ -506,16 +506,36 @@
 ames = %7B
+%22Biber%22, %22Clapton%22, 
 %22Davis%22,
@@ -548,16 +548,26 @@
 , %22Lee%22,
+ %22Miller%22,
  %22Smith%22
@@ -575,16 +575,27 @@
  %22Tramp%22
+, %22Trammel%22
 %7D;%0A     
@@ -719,16 +719,32 @@
 a = %7B%22%22,
+ %22%22, %22%22, %22%22, %22%22,
  %22A%22, %22B
@@ -749,16 +749,22 @@
 %22B%22, %22C%22
+, %22/4%22
 %7D;%0A     

add names&surnames to data generator