hightower-naming
Generate random hightower-style names with adjectives and nouns.
Installation
Add this to your Cargo.toml:
[]
= "0.1.1"
Usage
Basic Usage
use generate_random_name;
With Custom Prefix
use generate_random_name_with_prefix;
Name Format
Generated names follow the format:
-
Without prefix:
{adjective}-{noun}[-{random}] -
With prefix:
{prefix}-{adjective}-{noun}[-{random}] -
Prefix: Optional custom prefix (default: none)
-
Adjective: Random adjective (e.g., "alpha", "legendary", "unstoppable")
-
Noun: Random noun (e.g., "warrior", "titan", "phoenix")
-
Random suffix: Optional alphanumeric string
Examples
Run examples with:
Example outputs:
legendary-dragon(no suffix, no prefix)legendary-dragon-a3x9z(5 character suffix)unstoppable-titan-abc123def4(10 character suffix)app-supreme-phoenix(custom prefix, no suffix)app-alpha-warrior-m7k4p(custom prefix with 5 character suffix)