Project

randyname

0.0
No commit activity in last 3 years
No release in over 3 years
Generate memorable random names to use in your apps or anywhere else.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
 Project Readme

Randyname

Generate friendly and happy memorable random names to use in your apps or anywhere else.

Installation

Add this line to your application's Gemfile:

gem 'randyname'

And then execute:

$ bundle

Or install it yourself as:

$ gem install randyname

Usage

Randyname is pretty simple. There is nothing to configure and it only has a single method, .randymize:

Randyname.randymize # => "rough-snowflake-1142"

# Token range
Randyname.randymize(100) # => "nameless-star-13"

# Don't include the token
Randyname.randymize(0) # => "long-flower"

# Use a different delimiter
Randyname.randymize(9999, '.') # => "cool.leaf.6743"

# No token, no delimiter
Randyname.randymize(0, ' ') # => "green fire"

Customize words

Create config/initializers/randyname.rb

Add your custom list as follow

Randyname.adjectives = %w{good better}
Randyname.nouns = %w{boy girl}