最速Rubyリファレンスマニュアル検索!
すべて(2)
3.0(1)
3.1(1)
2件ヒット
[1-2件を表示]
(0.031秒)
トップページ
>
:
Class
>
クラス:Random
別のキーワード
argf.class each
argf.class each_line
argf.class lines
class new
argf.class gets
ライブラリ
ビルトイン
(2)
検索結果
先頭1件
Random
::
DEFAULT -> Class
Random
::
DEFAULT -> Class
(102.0)
3.0
3.1
定数
Ruby 3.0 から非推奨で,3.2で廃止されます。代わりに Random クラスオブジェクトを擬似乱数生成器として使用してください。
...
で廃止されます。代わりに
Random
クラスオブジェクトを擬似乱数生成器として使用してください。
また、
Random
::DEFAULT は
Random
クラスオブジェクトが返ります。
//emlist[][ruby]{
Random
::DEFAULT ==
Random
# => true
Random
.rand(10) # => 4
//}
...