summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r--crawl-ref/source/stuff.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc
index 9e7f2a0b3e..6c35f2a993 100644
--- a/crawl-ref/source/stuff.cc
+++ b/crawl-ref/source/stuff.cc
@@ -271,6 +271,8 @@ int random_range(int low, int high, int nrolls)
return (sum / nrolls);
}
+// Chooses one of the numbers passed in at random. The list of numbers
+// must be terminated with -1.
int random_choose(int first, ...)
{
va_list args;