1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] The laws of probability -->
<!--X-From-R13: pbqreNvoz.arg -->
<!--X-Date: from babe.globecomm.net [207.51.48.8] by in11.ibm.net id 865999098.37962&#45;1 Wed Jun 11 03:18:18 1997 CUT -->
<!--X-Message-Id: 199706110318.DAA103514#out2,ibm.net -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 9706081619.84oc@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] The laws of probability</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:coder#ibm,net">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg01285.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01287.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg01259.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01240.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#01286">Author</A>
&nbsp;|&nbsp;<A HREF="#01286">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#01286">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] The laws of probability</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] The laws of probability</LI>
<LI><em>From</em>: <A HREF="mailto:coder#ibm,net">coder#ibm,net</A></LI>
<LI><em>Date</em>: Tue, 10 Jun 97 20:13:39 -0700</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>

On 08/06/97 at 10:32 AM, cg#ami-cg,GraySage.Edmonton.AB.CA (Chris
Gray) said: &gt;[Chris L. on the laws of probability:]

&gt;:  X is a random number from 0 - MAX_UINT.
&gt;:
&gt;:  Y is the sum of all the char_weight_map entries which match type
&gt;:entries in type_list.
&gt;:
&gt;:  Z is the sum of all the env_weight_map entries which match type
&gt;:entries in type_list.
&gt;:
&gt;:  if (base_probability + Y + Z &lt; X) then
&gt;:    return 1
&gt;:  else
&gt;:    return 0
&gt;:  endif

&gt;Looks pretty good to me! My only comment is that it might be more
&gt;programmer friendly if X ranged from 0 to some multiple of 100, so
&gt;that the Y and Z factors would be easier to get a grasp on - they
&gt;could be percentage values scaled by that same multiple.

Actually its silly to have it 32bits.  A 16bit value would offer more
than fine enough granularity.  The shame is that I don't have an 16bit
values internally.  Conversely I don't think that a simpler percentage
offeres a fine enough granularity.

I'm thinking of making constants available which equate to 1%, 0.1%,
.001% etc so that a weighting factor can be defined as a fractional
percentage without having to get into floating point.

-- 
J C Lawrence                               Internet: claw#null,net
----------(*)                              Internet: coder#ibm,net
...Honourary Member of Clan McFud -- Teamer's Avenging Monolith...


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="01259" HREF="msg01259.html">Re: [MUD-Dev]	The laws of probability</A></STRONG>
<UL><LI><EM>From:</EM> cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray)</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg01285.html">Re: [MUD-Dev]  Physical Space Representation</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg01287.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01259.html">Re: [MUD-Dev]	The laws of probability</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg01240.html">[RP] The thoughful player</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#01286"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#01286"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev]  "From Kansas to Oz"</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="01317" HREF="msg01317.html">Re: [MUD-Dev]  "From Kansas to Oz"</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Fri 13 Jun 1997, 11:40 GMT
</LI>
</ul>
<LI><strong><A NAME="01363" HREF="msg01363.html">Re: [MUD-Dev]  "From Kansas to Oz"</A></strong>, 
Brandon Gillespie <a href="mailto:brandon#roguetrader,com">brandon#roguetrader,com</a>, Fri 20 Jun 1997, 04:55 GMT
<UL>
<LI><strong><A NAME="01485" HREF="msg01485.html">Re: [MUD-Dev]  "From Kansas to Oz"</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 25 Jun 1997, 06:59 GMT
</LI>
</UL>
</LI>
</ul>
</ul>
</ul>
</ul>
</LI>
<LI><strong><A NAME="01259" HREF="msg01259.html">Re: [MUD-Dev]	The laws of probability</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 10 Jan 1970, 03:27 GMT
<UL>
<LI><strong><A NAME="01286" HREF="msg01286.html">Re: [MUD-Dev] The laws of probability</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Wed 11 Jun 1997, 10:18 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="01240" HREF="msg01240.html">[RP] The thoughful player</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Thu 08 Jan 1970, 06:51 GMT
<LI><strong><A NAME="01239" HREF="msg01239.html">Re: [MUD-Dev] Death</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Thu 08 Jan 1970, 06:31 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="01174" HREF="msg01174.html">Re: [MUD-Dev] Death</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Thu 05 Jun 1997, 12:01 GMT
<UL>
<LI><strong><A NAME="01235" HREF="msg01235.html">Re: [MUD-Dev] Death</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#user1,inficad.com">nightfall#user1,inficad.com</a>, Fri 06 Jun 1997, 20:43 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>