summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/random.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-03-13 01:48:10 +0100
committerAdam Borowski <kilobyte@angband.pl>2011-03-13 01:48:10 +0100
commit51b381ba462cf6a355f401e817ee2b63518c077b (patch)
treea431ca5243bf2452d6ed47f153fb4d2663def8d8 /crawl-ref/source/random.cc
parente7c3fa432cecc5eeb49d79109033fd85ee3cad2a (diff)
parentce4dbcfd8506d4b4ce6047e1f3c1e7a06f84e09c (diff)
downloadcrawl-ref-51b381ba462cf6a355f401e817ee2b63518c077b.tar.gz
crawl-ref-51b381ba462cf6a355f401e817ee2b63518c077b.zip
Merge branch 'master' into unicode
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 c85d55fef2..2a0560ee75 100644
--- a/crawl-ref/source/random.cc
+++ b/crawl-ref/source/random.cc
@@ -250,8 +250,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)