LoginSignup
17
15

More than 5 years have passed since last update.

rubyでランダム文字列を生成

Posted at

ランダム文字列を生成するために、RubyではBase36を使えば良い

rand(36**length).to_s(36) 
17
15
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
15