This is useful for creating random strings.
Add this line to your application's Gemfile:
gem 'random_util'
And then execute:
$ bundle
Or install it yourself as:
$ gem install random_util
require('random_util')
RandomUtil.alphabets(8) #=>"wATAZrJU"
RandomUtil.numbers(7) #=>"0603549"
RandomUtil.alphabet_and_number(12) #=>"0lRJyl3VP6iw"
Argument is a number of characters.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request