summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/random.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-06-29 18:32:12 +0200
committerRaphael Langella <raphael.langella@gmail.com>2011-07-07 22:00:51 +0200
commitd61bf44b16ac0e9189417065a7ad48bb8fec2aed (patch)
tree39fecb3cf2b39da6ece6d5a917f6fe96e82e78af /crawl-ref/source/random.h
parent7995add01b0d02635dddccc684664f677f3d0aa4 (diff)
downloadcrawl-ref-d61bf44b16ac0e9189417065a7ad48bb8fec2aed.tar.gz
crawl-ref-d61bf44b16ac0e9189417065a7ad48bb8fec2aed.zip
Fix the rate of felling trees depending on action speed.
Diffstat (limited to 'crawl-ref/source/random.h')
-rw-r--r--crawl-ref/source/random.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/random.h b/crawl-ref/source/random.h
index eb889e59ea..1474c08660 100644
--- a/crawl-ref/source/random.h
+++ b/crawl-ref/source/random.h
@@ -19,11 +19,13 @@ int random_range(int low, int high, int nrolls);
const char* random_choose_string(const char* first, ...);
int random_choose(int first, ...);
int random_choose_weighted(int weight, int first, ...);
+double random_real();
int random2avg(int max, int rolls);
int bestroll(int max, int rolls);
int random2limit(int max, int limit);
int binomial_generator(unsigned n_trials, unsigned trial_prob);
+bool bernoulli(double n_trials, double trial_prob);
int fuzz_value(int val, int lowfuzz, int highfuzz, int naverage = 2);
int roll_dice(int num, int size);