summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
880f385)
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.
secs = 0;
if (!place_island(c, &x, &y))
return;
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);
do {
++secs;
find_coast(c);