diff --git a/demos/MMk.rb b/demos/MMk.rb index 8182311d7e90a02d554455ee46e4562ec3710854..1e088d882a7367ccbe78f46568fef0a626dd0766 100644 --- a/demos/MMk.rb +++ b/demos/MMk.rb @@ -1,7 +1,7 @@ #!/usr/bin/env ruby # expand the $LOAD_PATH to find local library modules until such -# time as this gets turned into a Ruby Gem. +# time as SimpleKit gets turned into a Ruby Gem. [File.expand_path(File.dirname(__FILE__), '../lib')].each do |new_location| $LOAD_PATH.unshift(new_location) unless $LOAD_PATH.include?(new_location) end diff --git a/demos/MyModelArgs.rb b/demos/MyModelArgs.rb index 6a8ece2e96678c61bad9716b5161e793b839d8e8..fb47276c3cdd15ae5b5b0eb6631f9680852f8918 100644 --- a/demos/MyModelArgs.rb +++ b/demos/MyModelArgs.rb @@ -12,12 +12,12 @@ class MyModel def init @x = 1 - schedule(:increment, 1.0, 1, 97) + schedule(:increment, rand, 1, 97) end def increment(n, c) @x += n - schedule(:increment, 1.5, @x, c + 1) + schedule(:increment, 2.0 * rand, @x, c + 1) printf "%f, %f, %c\n", model_time, @x, c schedule(:halt, 0.0) if model_time > 10 end