アプリなどを開発するブログ

React Native / Swift / Ruby on Railsなどの学習メモ。


rubyでランダムな英数字を出力する

8桁のランダムな英数字を出力するメモ

[*1..9, *'a'..'z'].sample(8).join