Skip to content

jessebs/ruby-randomstring

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby-randomstring

Installation

To install randomstring, use rubygems:

$ gem install randomstring

Usage

require 'randomstring'

Randomstring.generate
# >> "XwPp9xazJ0ku5CZnlmgAx2Dld8SHkAeT"

Randomstring.generate(7)
# >> "xqm5wXX"

Randomstring.generate_alphanumeric_lower
# >> "4vhp56ijj5lwfd73df1mw07b9llfw783"

Randomstring.generate_custom(8, ['A'..'C'])
# >> "BBABAAAB"

LICENSE

ruby-randomstring is licensed under the MIT license.

About

Ruby gem for generating random strings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%