From 29d2f5ccfe4d629151c4843f994ac8e9fcc74f58 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 9 Mar 2009 21:22:03 +0100 Subject: [PATCH] Change fairland island size probability distribution Island size is randomly chosen from the interval [1..2*is+1], with expected value is. Use two dice to roll the size instead of one. This makes extreme sizes much less likely. --- src/util/fairland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/fairland.c b/src/util/fairland.c index 8f5f454b8..255183660 100644 --- a/src/util/fairland.c +++ b/src/util/fairland.c @@ -821,7 +821,7 @@ grow_islands(void) secs = 0; if (!place_island(c, &x, &y)) return; - isiz = 1 + rnd(2 * is - 1); + isiz = 1 + rnd(is) + rnd(is); do { ++secs; find_coast(c); -- 2.43.0