Skip to content

Commit

Permalink
Porbability and randomness
Browse files Browse the repository at this point in the history
  • Loading branch information
suttree committed Mar 2, 2013
1 parent 9b90372 commit b66ad45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion castor/castor.rb
Expand Up @@ -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..."
Expand Down
3 changes: 2 additions & 1 deletion pollux/pollux.rb
Expand Up @@ -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..."
Expand Down

0 comments on commit b66ad45

Please sign in to comment.