Skip to content

klavoie1/RandomUsernameGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RandomUsernameGenerator

A simple command-line program that generates one random username by combining words from a list and appending a random number suffix. Example output: InternetFall146.

This was created to help avoid username reuse across websites and improve privacy by making it easy to generate unique usernames.

Features

  • Generates a single username each time the program is run
  • Combines words from an internal word list and appends a random numeric suffix
  • Minimal dependencies — just Java

Requirements

  • Java 8 or newer (JDK or JRE installed)

Quick start (basic)

Clone the repository:

git clone https://github.com/klavoie1/RandomUsernameGenerator.git
cd RandomUsernameGenerator

If the project is a single Java file (e.g. Main.java) in the repository root:

# compile
javac Main.java

# run
java Main

If the project uses multiple source files (package structure), compile all Java files to an output directory and run the main class:

# compile all .java files into `out`
mkdir -p out
find . -name "*.java" > sources.txt
javac -d out @sources.txt

# find the class that contains `public static void main(String[] args)` (example)
# then run with its fully qualified name:
java -cp out com.example.Main

If you don't know the main class, you can search the source for the main method:

grep -R "public static void main" -n .

Usage

Run the compiled program — it prints a single username and exits. Example outputs:

ForestSky729
SunsetByte042
InternetFall146

There are currently no command-line options implemented; the program always prints one username per run.

Customization ideas

  • Allow generating multiple usernames per run (e.g., --count)
  • Allow specifying number length for the numeric suffix
  • Allow using a custom word list file
  • Add a runnable JAR for easier distribution

If you'd like, I can implement any of these options and add simple argument parsing.

Contributing

Contributions are welcome. I am always looking for better ways of doing things or adding more benefits to this project.

License

This project is licensed under the MIT License — see the LICENSE file for details.

About

A simple CLI program that generates Usernames.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages