LoginSignup
6
3

More than 5 years have passed since last update.

ruby でランダムな大文字小文字英数字を一発で生成する

Last updated at Posted at 2017-07-07

忘れるので📝

$ ruby -e "src = ('A'..'Z').to_a + ('a'..'z').to_a + ('0'..'9').to_a ; puts (0...20).map{ src[rand(src.size-1)] }.join" | pbcopy
6
3
4

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
6
3