<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: [MUD-Dev] The laws of probability --> <!--X-From-R13: ptNnzv-pt.UenlEntr.Sqzbagba.OP.QO (Quevf Uenl) --> <!--X-Date: from fabius.globecomm.net [207.51.48.6] by in2.ibm.net id 761246.28298-1 Fri Jan 9 19:27:26 1970 CUT --> <!--X-Message-Id: 9706081619.84oc@ami-cg.GraySage.Edmonton.AB.CA --> <!--X-Content-Type: text/plain --> <!--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:cg#ami-cg,GraySage.Edmonton.AB.CA"> </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="msg01251.html">Previous</a> | <a href="msg01261.html">Next</a> ] Thread: [ <a href="msg01485.html">Previous</a> | <a href="msg01286.html">Next</a> ] Index: [ <A HREF="author.html#01259">Author</A> | <A HREF="#01259">Date</A> | <A HREF="thread.html#01259">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:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A> (Chris Gray)</LI> <LI><em>Date</em>: Sun, 8 Jun 97 09:19:31 MST</LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> [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. -- Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <ul compact><li><strong>Follow-Ups</strong>: <ul> <li><strong><A NAME="01286" HREF="msg01286.html">Re: [MUD-Dev] The laws of probability</A></strong> <ul compact><li><em>From:</em> coder#ibm,net</li></ul> </UL></LI></UL> <!--X-Follow-Ups-End--> <!--X-References--> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg01251.html">Re: [MUD-Dev] Alright... IF your gonan do DESIESE...</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg01261.html">"From Kansas to Oz"</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg01485.html">Re: [MUD-Dev] "From Kansas to Oz"</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg01286.html">Re: [MUD-Dev] The laws of probability</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#01259"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#01259"><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> <LI><strong><A NAME="01315" HREF="msg01315.html">Re: [MUD-Dev] "From Kansas to Oz"</A></strong>, Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Fri 13 Jun 1997, 10:24 GMT <UL> <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> <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 </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>