LoginSignup
20
16

More than 5 years have passed since last update.

Scalaでランダムなパスワード文字列を生成したい

Last updated at Posted at 2014-09-29

英数字からなる10文字のランダムな文字列が生成される。

scala.util.Random.alphanumeric.take(10).mkString 
//> res0: String = L1diCTV4Tl
20
16
0

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
20
16