Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Porbability and randomness

  • Loading branch information...
commit b66ad45d0762fe45e66e10848ac364ad851d1477 1 parent 9b90372
@suttree authored
Showing with 4 additions and 2 deletions.
  1. +2 −1  castor/castor.rb
  2. +2 −1  pollux/pollux.rb
View
3  castor/castor.rb
@@ -54,7 +54,8 @@ def self.tidy(text)
end
-if (1 + rand(4) == 4)
+probability = 4
+if (rand(9) > probability)
Castor::taller
else
puts "[castor] Going back to sleep..."
View
3  pollux/pollux.rb
@@ -54,7 +54,8 @@ def self.tidy(text)
end
-if (1 + rand(4) == 4)
+probability = 6
+if (rand(9) > probability)
Pollux::taller
else
puts "[pollux] Going back to sleep..."
Please sign in to comment.
Something went wrong with that request. Please try again.