MUD-Dev
mailing list archive

[ Other Periods  | Other mailing lists  | Search  ]

Date:  [ Previous  | Next  ]      Thread:  [ Previous  | Next  ]      Index:  [ Author  | Date  | Thread  ]

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



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



[ Other Periods  | Other mailing lists  | Search  ]