summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/random.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-01-28 22:55:34 +0100
committerRaphael Langella <raphael.langella@gmail.com>2011-01-28 22:55:34 +0100
commit00876f44e6be8390469241a0ba150ec6c79ebccf (patch)
tree197e04be769fbac919a9a1af03e1363d95b7ed1d /crawl-ref/source/random.cc
parentcae11402d8c8c0c103e1d3f8168d62aac5c50dee (diff)
downloadcrawl-ref-00876f44e6be8390469241a0ba150ec6c79ebccf.tar.gz
crawl-ref-00876f44e6be8390469241a0ba150ec6c79ebccf.zip
Typo.
Diffstat (limited to 'crawl-ref/source/random.cc')
-rw-r--r--crawl-ref/source/random.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/random.cc b/crawl-ref/source/random.cc
index 5277f7e4ec..4b19c9b894 100644
--- a/crawl-ref/source/random.cc
+++ b/crawl-ref/source/random.cc
@@ -251,8 +251,8 @@ int random2limit(int max, int limit)
}
// Generate samples from a binomial distribution with n_trials and trial_prob
-// probability of success per trial. trial_prob is a integer less than 100
-// representing the % chancee of success.
+// probability of success per trial. trial_prob is an integer less than 100
+// representing the % chance of success.
// This just evaluates all n trials, there is probably an efficient way of
// doing this but I'm not much of a statistician. -CAO
int binomial_generator(unsigned n_trials, unsigned trial_prob)