Re: Population Multiplier
In reply to #1402 Multiplied population? by Brent L. Woods
Replies:
- #1412 Re: (1405) Re: Population Multiplier by Brent L. Woods
>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