1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Rooms, 3D arrays, etc. -->
<!--X-From-R13: Xrss Yrffryzna <wrssxNgrargjbex.pbz> -->
<!--X-Date: from fabius.globecomm.net [207.51.48.6] by in4.ibm.net id 865573245.23238&#45;1 Fri Jun  6 05:00:45 1997 CUT -->
<!--X-Message-Id: 3.0.32.19970605220315.009f1e14#mail,tenetwork.com -->
<!--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] Rooms, 3D arrays, etc.</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:jeffk#tenetwork,com">
</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="msg01220.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01222.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg01202.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01244.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#01221">Author</A>
&nbsp;|&nbsp;<A HREF="#01221">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#01221">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Rooms, 3D arrays, etc.</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] Rooms, 3D arrays, etc.</LI>
<LI><em>From</em>: Jeff Kesselman &lt;<A HREF="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</A>&gt;</LI>
<LI><em>Date</em>: Thu, 05 Jun 1997 22:03:16 -0700</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
At 07:41 PM 6/5/97 PST8PDT, jc lawrence wrote:
&gt;In &lt;<A HREF="msg01166.html">199706050211.VAA10068#dfw-ix15,ix.netcom.com</A>&gt;, on 06/04/97 
&gt;   at 08:34 PM, "Jon A. Lambert" &lt;jlsysinc#ix,netcom.com&gt; said:
&gt;
&gt;&gt;Does multi-threading have any affects on seeds used in the random
&gt;&gt;generator.  Does anyone know if this is truly thread safe?
&gt;
&gt;Yes and no.  
&gt;
&gt;Look at the random number algorithms in something like Numerical
&gt;Recipes.  Many random number algorithms work by getting the next value
&gt;by computing on that last value returned and possibly some earlier
&gt;ones than that.  sometimes this is also crossed with a timer value
&gt;either as an initial seed, or as an ongoing affair.

Ah, this is assuming you are creating a series not a single number. Easy
enough to solve, just reseed yourslef with the last numebr before calling
again and do both the reseed and the call ina  critical section.

There is NOTHING that can be doen in monothreaded code that cannot be amde
to work multi-trheaded if you understand what youa re doing.

&gt;
&gt;More interesting for the current fractal landscape discussion is
&gt;repeatability.  We don't really want random values.  We want values
&gt;that viewed as a set appear random, but can be re-computed from a
&gt;basic algorithm to get an identical set of values.  (That rules out
&gt;any of the timer absed seeds.)  

Yep, and the whoel poitn of discussing psuedo randoms was that theya re
repeatable given the same seed.  The logical seed for thsi application,as
someone mentioend, is some procedural calculated numeb based on the coords
of the point in question.  100% repeatable. 

&gt;The standard approach is to make private rand() functions for each
&gt;feature.  This has the benefit of allowing the choice of algorithm for
&gt;each rand() function to be tailored to the task.  The problem is that

Icky.  yech.  Duplicate code??? Why, when the only issue is a single peice
of data.  just start from a known seed and always reseed when you call.
Problem solved with one variable local to obejct in question.  Again, if
this is based on a variable you already store, you dont even need that.

I fidn this discussion a touch ironic.  Typicly the question is how to
AVOID the obviosu repeating nature of psuedo randoms-- thus the timer tick
dodge.

No offesne guys, but I thin kyour making this WAY harder then it needs to be.

JK


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg01220.html">Re: [MUD-Dev]  over the shoudler view</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg01222.html">Re: [MUD-Dev] Life</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01202.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg01244.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#01221"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#01221"><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>Physical Space Representation</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="01248" HREF="msg01248.html">Physical Space Representation</A></strong>, 
Mathue Moyer <a href="mailto:mathue#king,cts.com">mathue#king,cts.com</a>, Sun 08 Jun 1997, 02:17 GMT
<UL>
<LI><strong><A NAME="01285" HREF="msg01285.html">Re: [MUD-Dev]  Physical Space Representation</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Wed 11 Jun 1997, 10:08 GMT
</LI>
</UL>
</LI>
</ul>
</ul>
<LI><strong><A NAME="01190" HREF="msg01190.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Thu 05 Jun 1997, 12:51 GMT
</LI>
<LI><strong><A NAME="01202" HREF="msg01202.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 05 Jun 1997, 21:47 GMT
</LI>
<LI><strong><A NAME="01221" HREF="msg01221.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Fri 06 Jun 1997, 12:00 GMT
</LI>
<LI><strong><A NAME="01244" HREF="msg01244.html">Re: [MUD-Dev] Rooms, 3D arrays, etc.</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sat 07 Jun 1997, 08:12 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00874" HREF="msg00874.html">Important: Posting requirements</A></strong>, 
coder <a href="mailto:coder#ibm,net">coder#ibm,net</a>, Wed 28 May 1997, 11:32 GMT
<LI><strong><A NAME="00873" HREF="msg00873.html">Re: [MUD-Dev]  Conventions (was RP thesis)</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Wed 28 May 1997, 09:53 GMT
<UL>
<LI><strong><A NAME="00884" HREF="msg00884.html">Re: [MUD-Dev]  Conventions (was RP thesis)</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#user1,inficad.com">nightfall#user1,inficad.com</a>, Wed 28 May 1997, 14:22 GMT
</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>