[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

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

[Full Header] [Plain Text]
From: J C Lawrence <claw@cp.net>
Newsgroups: nu.kanga.list.mud-dev
Date: Fri, 17 Dec 1999 15:58:21 -0800
References: [1]
Organization: Kanga.Nu
On Fri, 17 Dec 1999 14:21:57 -0800 
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.

--
J C Lawrence                              Internet: claw@kanga.nu
----------(*)                            Internet: coder@kanga.nu
...Honorary Member of Clan McFud -- Teamer's Avenging Monolith...


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