[Home] [Groups] - Message: [Prev in Group] [Next in Group]
12056: RE: [MUD-Dev] The grass is always greener in the other field
[Full Header] [Plain Text]
From: "Sellers, Michael" <MSellers@maxis.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Fri, 17 Dec 1999 16:08:31 -0800
Organization: Kanga.Nu
JC wrote:
> Sellers, Michael <MSellers@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@kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev