class Chaos::Chaos

Defined in:

chaos.cr

Constant Summary

DEFAULT_PROBABILITY = 0.5

Default probability

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Initialize with default probability


[View source]

Instance Method Detail

def probability : Float64 #

Getter for the current probability


[View source]
def reset_probability #

Reset to the default probability


[View source]
def set_probability(new_probability : Float64) #

Set a new probability


[View source]