任意の長さのランダム文字列生成

Scala

scala.util.Random.alphanumeric.take(12).mkString