random names, yeap im bored

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • trs1800

    random names, yeap im bored

    /*i think someone should you this to name their baby*/
    import java.util.Rando m;
    public class name
    {
    public static void main(String[] args)
    {
    String string1;
    char char1 = 7;
    string1 = " ";
    int temp, length;
    Random generator = new Random();
    length = generator.nextI nt(10);
    for(int blah = 0;blah <= length;blah++)
    {
    temp = generator.nextI nt(26);
    if(temp == 1)
    char1 = 65;
    if(temp == 2)
    char1 = 66;
    if(temp == 3)
    char1 = 67;
    if(temp == 4)
    char1 = 68;
    if(temp == 5)
    char1 = 69;
    if(temp == 6)
    char1 = 70;
    if(temp == 7)
    char1 = 71;
    if(temp == 8)
    char1 = 72;
    if(temp == 9)
    char1 = 73;
    if(temp == 10)
    char1 = 74;
    if(temp == 11)
    char1 = 75;
    if(temp == 12)
    char1 = 76;
    if(temp == 13)
    char1 = 77;
    if(temp == 14)
    char1 = 78;
    if(temp == 15)
    char1 = 79;
    if(temp == 16)
    char1 = 80;
    if(temp == 17)
    char1 = 81;
    if(temp == 18)
    char1 = 82;
    if(temp == 19)
    char1 = 83;
    if(temp == 20)
    char1 = 84;
    if(temp == 21)
    char1 = 85;
    if(temp == 22)
    char1 = 86;
    if(temp == 23)
    char1 = 87;
    if(temp == 24)
    char1 = 88;
    if(temp == 25)
    char1 = 89;
    if(temp == 26)
    char1 = 90;
    string1 = string1 + char1;
    }
    System.out.prin tln(string1);
    }


    }
Working...