るりまサーチ

最速Rubyリファレンスマニュアル検索!
7件ヒット [1-7件を表示] (0.098秒)

別のキーワード

  1. numeric step
  2. _builtin numeric
  3. numeric phase
  4. numeric rectangular
  5. numeric numerator

ライブラリ

モジュール

検索結果

SecureRandom.alphanumeric(n = nil) -> String (24214.0)

ランダムな英数字を生成して返します。

...n A-Z, a-z, 0-9 からなる文字列が返されます。

@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。

//emlist[][ruby]{
require 'securerandom'
p SecureRandom.alphanumeric #=> "2BuBuLf3WfSKyQbR"
p SecureRandom.alphanumeric(10) #=> "i6K93NdqiH"
//}...