From f0fc075a1211c231ff1f979ac7fa358b379eba6d Mon Sep 17 00:00:00 2001
From: pjs <pjs@alum.mit.edu>
Date: Fri, 17 Feb 2012 10:36:22 -0800
Subject: [PATCH] minor tweaks to demos

Signed-off-by: pjs <pjs@alum.mit.edu>
---
 demos/MMk.rb         | 2 +-
 demos/MyModelArgs.rb | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/demos/MMk.rb b/demos/MMk.rb
index 8182311..1e088d8 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 6a8ece2..fb47276 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
-- 
GitLab