Class: Random

Inherits:
Object show all
Extended by:
Backports::Random::Implementation
Includes:
Backports::Random::Implementation
Defined in:
lib/backports/random/load.rb

Instance Attribute Summary

Attributes included from Backports::Random::Implementation

#seed

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Backports::Random::Implementation

==, bytes, initialize, marshal_dump, marshal_load, rand, srand

Class Method Details

.new_seedObject


7
8
9
10
# File 'lib/backports/random/load.rb', line 7

def self.new_seed
  Kernel::srand # use the built-in seed generator
  Kernel::srand # return the generated seed
end

Instance Method Details

#inspectObject


12
13
14
# File 'lib/backports/random/load.rb', line 12

def inspect
  "#<#{self.class.name}:#{object_id}>"
end