-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathN-name g-gen
More file actions
18 lines (14 loc) · 835 Bytes
/
Copy pathN-name g-gen
File metadata and controls
18 lines (14 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
public class NameGen {
public static void main(String[] args) {
Random random = new Random();
int syllables = random.nextInt(2); // Only 3 syllabels allowed sry not sry
char vowels[] = {'A','E','I','O','U'}; // >what's a vowel
String alphabetic[] = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
String name = ""; // initialisation of name because u r fag
for (int i = 0; i < syllables+2; i++) {
name += alphabetic[random.nextInt(alphabetic.length)]; //>takes 1 normal letter
name += vowels[random.nextInt(vowels.length)]; //>adds a shitty vowel
}
System.out.println(name.toLowerCase()); // >lower case beacuse fuck you i'm not a smart person
}
}