<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: [MUD-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-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-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> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg01285.html">Previous</a> | <a href="msg01287.html">Next</a> ] Thread: [ <a href="msg01259.html">Previous</a> | <a href="msg01240.html">Next</a> ] Index: [ <A HREF="author.html#01286">Author</A> | <A HREF="#01286">Date</A> | <A HREF="thread.html#01286">Thread</A> ] <!--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: >[Chris L. on the laws of probability:] >: X is a random number from 0 - MAX_UINT. >: >: Y is the sum of all the char_weight_map entries which match type >:entries in type_list. >: >: Z is the sum of all the env_weight_map entries which match type >:entries in type_list. >: >: if (base_probability + Y + Z < X) then >: return 1 >: else >: return 0 >: endif >Looks pretty good to me! My only comment is that it might be more >programmer friendly if X ranged from 0 to some multiple of 100, so >that the Y and Z factors would be easier to get a grasp on - they >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><Possible follow-up(s)><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> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>