[MUD-Dev] The grass is always greener in the other field

Sellers Sellers
Fri Dec 17 16:08:31 New Zealand Daylight Time 1999


JC wrote:
> Sellers, Michael <MSellers at maxis.com> wrote:
> 
> > seed = location seed + (obj ID | activity ID) + your skill level
> > randNum = rand(seed) 
> > if (your skill > randNum) success = TRUE;
> 
> > Is that essentially what you were talking about?
> 
> Given a rand() function that will always return the same value for
> the same argument, yes.  Without that you merely have a more
> expensive PRNG with odd distributions -- ie little to no gain.

Right.  The ability to get the same PRN out of a PRNG given the same seed
can be extremely useful in a lot of ways, if it can be shielded from the
player.

Mike Sellers



_______________________________________________
MUD-Dev maillist  -  MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev



More information about the MUD-Dev mailing list