Java Random Name randomName()

Here you can find the source of randomName()

Description

random Name

License

Open Source License

Declaration

public static String randomName() 

Method Source Code

//package com.java2s;

public class Main {
    public static String randomName() {
        String[] simple = { "an", "ao", "andy", "apple", "blue", "boy", "ben", "bob", "black", "cold", "code",
                "color", "cream", "cindy", "doctor", "dany", "dog", "dick", "egg", "easy", "editor", "fox", "fade",
                "fall", "fancy", "green", "gentle", "good", "glass", "happy", "half", "hard", "holidy", "jack",
                "jade", "jeep", "july", "kid", "kind", "king", "killer", "lucky", "luck", "looser", "lord", "mm",
                "moon", "magic", "music", "note", "noah", "nil", "nut", "orange", "open", "ok", "old", "pop",
                "park", "painter", "print", "queen", "quite", "quake", "quail", "red", "rapid", "rabbit", "rose",
                "soul", "saga", "sailor", "soldier", "tiger", "tag", "trick", "touch", "UFO", "guly", "under",
                "user", "victor", "visitor", "visual", "void", "world", "wise", "wide", "water", "x-ray", "x",
                "yellow", "year", "yolk", "yew", "zink", "zealot", "zebra", "zero" };
        return simple[(int) Math.floor(Math.random() * (simple.length))];
    }/* w ww.  j  av a 2  s  .  c o  m*/
}

Related

  1. getRandomName()
  2. getRandomName()
  3. randomFilename()
  4. randomFileName()
  5. randomIndexName()
  6. randomName()
  7. randomName()