るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.165秒)
トップページ > クエリ:l[x] > バージョン:2.1.0[x] > クエリ:n[x] > クエリ:random_string[x]

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. pop n_mails
  3. context prompt_n
  4. openssl n=
  5. context prompt_n=

ライブラリ

モジュール

検索結果

WEBrick::Utils.#random_string(len) -> String (81922.0)

A-Z, a-z, 0-9 からなる長さ len のランダムな文字列を返します。

A-Z, a-z, 0-9 からなる長さ len のランダムな文字列を返します。

@param len 得たい文字列の長さを整数で指定します。単位はバイトです。

require 'webrick'
p WEBrick::Utils.random_string(10) #=> "xF0jwU4RJd"