Ruby 3.4 リファレンスマニュアル

instance method Random#seed

seed -> IntegerRuby 1.9.3 から[permalink][rdoc][edit]

現在の乱数の種を返します。

p Random.new(3).seed # => 3