diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-10-06 17:16:52 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-10-06 17:18:39 +0200 |
commit | ba44991f064c3db2626e787dc95d0719877c89b0 (patch) | |
tree | 1d3aefaa14238ddbe0d4294e848b740af68607f0 /crawl-ref/source/random.h | |
parent | c47ee9af642d5ad698871c7ce31e5ffae6a51d98 (diff) | |
download | crawl-ref-ba44991f064c3db2626e787dc95d0719877c89b0.tar.gz crawl-ref-ba44991f064c3db2626e787dc95d0719877c89b0.zip |
random3(), with a different RNG state.
Works same as random2().
Also, stops valgrind from kvetching about unfreed asg state.
Diffstat (limited to 'crawl-ref/source/random.h')
-rw-r--r-- | crawl-ref/source/random.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/random.h b/crawl-ref/source/random.h index abd0bd483f..d4cf2f80e1 100644 --- a/crawl-ref/source/random.h +++ b/crawl-ref/source/random.h @@ -34,6 +34,8 @@ 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); +int random3(int max); + /** * Chooses one of the numbers passed in at random. The list of numbers * must be terminated with -1. |