るりまサーチ

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

別のキーワード

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

ライブラリ

モジュール

検索結果

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