Multiplied population?

A thread of 3 messages, 10 July 1990 to 14 July 1990, in the order they were sent.

#1402 Multiplied population?

     Okay, friends and neighbors, it's dumb question time...

     I recently decided to play around with random numbers in C (on my
Amiga), so I decided to write a planet generator for Traveller (just
like everyone else--come on, admit it).  I got a simple program working
without too much trouble (right now, I'm having some trouble with
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?  There are rules in the
Referee's Manual on how to generate it, but I couldn't find anything
in the text on what made it useful.

     Could someone enlighten me on this one?


- --
     Brent

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

#1405 Re: Population Multiplier

>Date: Tue, 10 Jul 90 3:38:34 EST
>From: "Brent L. Woods" [email removed]
>Subject: (1402) Multiplied population?
>
>
>     Okay, friends and neighbors, it's dumb question time...
>
>     I recently decided to play around with random numbers in C (on my
>Amiga), so I decided to write a planet generator for Traveller (just
>like everyone else--come on, admit it).  I got a simple program working
>without too much trouble (right now, I'm having some trouble with
>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?  There are rules in the
>Referee's Manual on how to generate it, but I couldn't find anything
>in the text on what made it useful.
>
>     Could someone enlighten me on this one?

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.

Hope this helps

Rob

#1412 Re: (1405) Re: Population Multiplier

 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)