るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.173秒)
トップページ > 種類:モジュール関数[x] > クエリ:p[x] > クエリ:E[x] > クエリ:random_string[x]

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix rank_e
  4. matrix det_e
  5. open3 capture2e

ライブラリ

モジュール

検索結果

WEBrick::Utils.#random_string(len) -> String (21214.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"...