Class: Starter::Random::ConstantSequence
- Defined in:
- lib/starter/random.rb
Instance Attribute Summary collapse
-
#mean ⇒ Object
readonly
Returns the value of attribute mean.
Attributes inherited from Sequence
Instance Method Summary collapse
-
#initialize(opt = {}) ⇒ ConstantSequence
constructor
A new instance of ConstantSequence.
- #next ⇒ Object
Methods inherited from Sequence
random_pool_seed, random_seed, serial_count
Constructor Details
#initialize(opt = {}) ⇒ ConstantSequence
Returns a new instance of ConstantSequence.
90 91 92 |
# File 'lib/starter/random.rb', line 90 def initialize opt = {} @mean = Float(opt[:mean] || 0) end |
Instance Attribute Details
#mean ⇒ Object (readonly)
Returns the value of attribute mean.
88 89 90 |
# File 'lib/starter/random.rb', line 88 def mean @mean end |
Instance Method Details
#next ⇒ Object
94 95 96 |
# File 'lib/starter/random.rb', line 94 def next @mean end |