Re: (1405) Re: Population Multiplier

By Brent L. Woods ·

TML message #1412From bundle 115Read the whole thread (3 messages)All messages with this subject

In reply to #1405 Re: Population Multiplier by Rob Miracle Cites: #1405
 In Archive-Message-Number 1405, Rob Miracle writes:
 >
 >>Date: Tue, 10 Jul 90 3:38:34 EST
 >>From: [email removed] (Brent L. Woods)
 >>Subject: (1402) Multiplied population?
 >>
 >>
 >>     Okay, friends and neighbors, it's dumb question time...
 >>
 >>generating planet names randomly, but that's no big deal), and a
 >>question occurred to me in the course of writing it.  Namely, just
 >>what's the population multiplier good for?
 >
 >Population = PopM * Base Population, and PopM is an integer 1 <= PopM <= 9
 >
 >Thus to get your PopM:
 >
 >PopM = rand() % 9 + 1;
 >
 >Thus if your UWP Population code was 8  (10's of Millions) and your PopM was 6
 >then your population would be 60 Million.

     Ummm...okay.  I wrote a little function that generates a random
number from 1 to any positive non-zero integer (I call the function
die()), so I use the rules that were in the Referee's Manual.  Namely:

          Roll D6.  If odd, PopM = D6 + 4 (re-roll results of 10);
                    If even, PopM = D6 - 1 (re-roll results of 5).

     In the course of this little task, I've found that having a random
function that simulates the roll of a single die to be quite useful.

 >Hope this helps

     Yeah, it did, actually.  Thank you.


- --
     Brent

INTERNET:  [email removed]
[address removed]
PHONE:  [phone removed] (voice)