<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Random numbers in 2d script in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22766#M40867</link>
    <description>Hi,&lt;BR /&gt;
I have a problem similar to the Subject:&lt;BR /&gt;
&lt;BR /&gt;
In an object the random calculation seems to be taken twice.&lt;BR /&gt;
The first for the 3D-Script and the second for the PROJECT2 command in the 2D-Script.&lt;BR /&gt;
How can this be?&lt;BR /&gt;
See the pictures below: the colored is a snapshot of the 3D-window,&lt;BR /&gt;
the non colored is a snapshot of the 2D-window where the object is shown with a PROJECT2-coomand.&lt;BR /&gt;
(The object shows a brick girder from below; the place of the short bricks is calculated by random)</description>
    <pubDate>Thu, 01 Apr 2004 15:38:46 GMT</pubDate>
    <dc:creator>Jochen Suehlo</dc:creator>
    <dc:date>2004-04-01T15:38:46Z</dc:date>
    <item>
      <title>Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22762#M40863</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi all&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to write a script for an object that will display random/different people in 2d for elevation drawings. Problem is that the random numbers that ArchiCAD generates are generally the same and not very random!&lt;BR /&gt;
&lt;BR /&gt;
Is there some way I can force ArchiCAD to generate better random numbers?&lt;BR /&gt;
&lt;BR /&gt;
I remember writing a programme for my Psion that used random numbers and the best way it did it was getting the time in seconds and multiply that with a "random" number and then get the interger of that result. This was due to the Psion generating somewhat limited random numbers.&lt;BR /&gt;
&lt;BR /&gt;
Below is the script which calls up a Fragment based on the random number.&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;&lt;BR /&gt;
10:&lt;BR /&gt;
Randper= INT (RND (15))&lt;BR /&gt;
fill bft&lt;BR /&gt;
pen bpn&lt;BR /&gt;
fragment2 Randper,1&lt;BR /&gt;
RETURN&lt;BR /&gt;
&lt;E&gt;&lt;/E&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Apr 2004 12:12:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22762#M40863</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2004-04-01T12:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22763#M40864</link>
      <description>Random numbers in ArchiCAD are (AFAIK) only generated once, i.e. when an object is first placed. This avoids strangely animated trees in flythroughs that rebuild the model for each frame.&lt;BR /&gt;
&lt;BR /&gt;
You can, as you suggest, come up with your own random number code or you could delete and replace your library part for each random iteration.&lt;BR /&gt;
&lt;BR /&gt;
The only thing is, people don't arrange themselves randomly, you are probably in for some goofy results. Oh, I get it (I think) it's not random arrangements you are looking for just random characters?</description>
      <pubDate>Thu, 01 Apr 2004 12:30:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22763#M40864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-01T12:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22764#M40865</link>
      <description>&lt;BLOCKQUOTE&gt;Matthew wrote:&lt;BR /&gt; Oh, I get it (I think) it's not random arrangements you are looking for just random characters?&lt;/BLOCKQUOTE&gt;

Yep that's right. The idea is each time you insert the object into the drawing you get a different person displayed. &lt;BR /&gt;
&lt;BR /&gt;
Basically I'm lazy and hate making decisions  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;  I don't want to have to keep selecting a different person myself I want the object to do it for me&lt;BR /&gt;
&lt;BR /&gt;
So I think from what you saying that I will need to find away to script the random number so it's more random than what ArchiCAD is coming up with.</description>
      <pubDate>Thu, 01 Apr 2004 12:39:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22764#M40865</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2004-04-01T12:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22765#M40866</link>
      <description>There is also the question of what you mean by random. True randomness does not typically produce an even distribution. It is just as likely that flipping a coin will get you twenty heads in a row as it will an alternation between heads and tails or any other specific result. What you may be looking for is to introduce a small randomness into an otherwise sequential order.</description>
      <pubDate>Thu, 01 Apr 2004 14:34:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22765#M40866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-01T14:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22766#M40867</link>
      <description>Hi,&lt;BR /&gt;
I have a problem similar to the Subject:&lt;BR /&gt;
&lt;BR /&gt;
In an object the random calculation seems to be taken twice.&lt;BR /&gt;
The first for the 3D-Script and the second for the PROJECT2 command in the 2D-Script.&lt;BR /&gt;
How can this be?&lt;BR /&gt;
See the pictures below: the colored is a snapshot of the 3D-window,&lt;BR /&gt;
the non colored is a snapshot of the 2D-window where the object is shown with a PROJECT2-coomand.&lt;BR /&gt;
(The object shows a brick girder from below; the place of the short bricks is calculated by random)</description>
      <pubDate>Thu, 01 Apr 2004 15:38:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22766#M40867</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2004-04-01T15:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22767#M40868</link>
      <description>&lt;B&gt;RND &lt;/B&gt; does let you set a limit to the range that the &lt;B&gt;RND &lt;/B&gt; command will generate.&lt;BR /&gt;
&lt;BR /&gt;
So in my example it should generate a number greater than 0 but not greater than 12. 12 being the number of fragments I have drawn diffeerent people on. Sadly it just keeps producing the number &lt;BR /&gt;
&lt;BR /&gt;
I tried using the &lt;B&gt;REQUEST&lt;/B&gt; command to find out the time in seconds but have discovered that the &lt;B&gt;REQUEST&lt;/B&gt; command produces a text string even although it looks like numbers &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_cry.gif" style="display : inline;" /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 16:20:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22767#M40868</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2004-04-01T16:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22768#M40869</link>
      <description>&lt;BLOCKQUOTE&gt;Joachim wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;
I have a problem similar to the Subject:&lt;BR /&gt;
&lt;BR /&gt;
In an object the random calculation seems to be taken twice.&lt;BR /&gt;
The first for the 3D-Script and the second for the PROJECT2 command in the 2D-Script.&lt;BR /&gt;
How can this be?&lt;BR /&gt;
See the pictures below: the colored is a snapshot of the 3D-window,&lt;BR /&gt;
the non colored is a snapshot of the 2D-window where the object is shown with a PROJECT2-coomand.&lt;BR /&gt;
(The object shows a brick girder from below; the place of the short bricks is calculated by random)&lt;/BLOCKQUOTE&gt;

Do you have the &lt;B&gt;RND&lt;/B&gt; function in the Master script? If it is in both the 3d and 2d scripts then it should give a different result each time.&lt;BR /&gt;
&lt;BR /&gt;
Least you are getting more "randomness" than me &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 16:23:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22768#M40869</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2004-04-01T16:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22769#M40870</link>
      <description>I just tried the RND function and it seems to be working as expected:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Define style text_style `Arial`, 3, 1, 0&lt;BR /&gt;
Style text_style&lt;BR /&gt;
&lt;BR /&gt;
FOR i = 1 TO 12&lt;BR /&gt;
	Text2 0, 0, INT(RND(12))&lt;BR /&gt;
	add2 0, -0.006*GLOB_SCALE&lt;BR /&gt;
NEXT i&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
This produced the attached...&lt;BR /&gt;
&lt;BR /&gt;
A fairly typical random sequence between 0 and 12.&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/67958iB0CFF7FA331A1D33/image-size/large?v=v2&amp;amp;px=999" border="0" alt="RND example.jpg" title="RND example.jpg" /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 17:03:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22769#M40870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-01T17:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22770#M40871</link>
      <description>Thanks for trying that. I took your script and tried it as an object and what I found was that it does generate random numbers but if you insert the object again it produces exactly the same numbers. &lt;BR /&gt;
&lt;BR /&gt;
What I did find was that when you close and open the drawing again all the numbers change but all the instances of the object still display the same numbers.&lt;BR /&gt;
&lt;BR /&gt;
So to get the random People in my object to work I would have to insert one instance of the object but have a number of random People appear like your script and I suppose I could also place each Person in a random position similar to Joachim's object. Sounds like this would be an even easier way put some People in my drawing  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 19:18:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22770#M40871</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2004-04-01T19:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22771#M40872</link>
      <description>&lt;BLOCKQUOTE&gt;fuzzytnth3 wrote:&lt;BR /&gt;Thanks for trying that. I took your script and tried it as an object and what I found was that it does generate random numbers but if you insert the object again it produces exactly the same numbers. 
&lt;/BLOCKQUOTE&gt;

I think, this is some of GDL engine optimization effect.&lt;BR /&gt;
Try this trick to avoid it.&lt;BR /&gt;
Instead RND(12) type RND(12 + GLOB_INTID*0 )&lt;BR /&gt;
&lt;BR /&gt;
Oleg</description>
      <pubDate>Thu, 01 Apr 2004 19:34:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22771#M40872</guid>
      <dc:creator>Oleg</dc:creator>
      <dc:date>2004-04-01T19:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22772#M40873</link>
      <description>&lt;BLOCKQUOTE&gt;Oleg wrote:&lt;BR /&gt;I think, this is some of GDL engine optimization effect.&lt;BR /&gt;
Try this trick to avoid it.&lt;BR /&gt;
Instead RND(12) type RND(12 + GLOB_INTID*0 )&lt;BR /&gt;
&lt;BR /&gt;
Oleg&lt;/BLOCKQUOTE&gt;

Interesting trick. I have always wondered what the internal ID might be useful for.</description>
      <pubDate>Thu, 01 Apr 2004 20:06:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22772#M40873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-01T20:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22773#M40874</link>
      <description>&lt;BLOCKQUOTE&gt;fuzzytnth3 wrote:&lt;BR /&gt;10:&lt;BR /&gt;
Randper= INT (RND (15))&lt;BR /&gt;
fill bft&lt;BR /&gt;
pen bpn&lt;BR /&gt;
fragment2 Randper,1&lt;BR /&gt;
RETURN
&lt;/BLOCKQUOTE&gt;

Try this
&lt;PRE&gt;10: 
	Randper= RND(GLOB_INTID) ! pass one random

	! +1    : fragments index start from 1
	! -1e-6 : to avoid exactly 16

	Randper= INT(RND(16)-1e-6) + 1
	fill bft 
	pen bpn 
	fragment2 Randper,1 
RETURN &lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Apr 2004 20:41:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22773#M40874</guid>
      <dc:creator>Oleg</dc:creator>
      <dc:date>2004-04-01T20:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22774#M40875</link>
      <description>Thanks Oleg that did the trick &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 20:41:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22774#M40875</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2004-04-01T20:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22775#M40876</link>
      <description>I've found this useful as well. Thanks &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
I've made a part that forms planks of varying widths, though I've got a few issues:&lt;BR /&gt;
&lt;BR /&gt;
When I copy my object, the projection on plan is the same as the original, even though when I go to 3D view the objects apear different.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas how to get around this?&lt;BR /&gt;
&lt;BR /&gt;
And while I'm at it, how do I get the 3D and 2D script to use the same random number sequence? So I get hotspots on each end of the plank.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Fri, 02 Apr 2004 00:12:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22775#M40876</guid>
      <dc:creator>James B</dc:creator>
      <dc:date>2004-04-02T00:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22776#M40877</link>
      <description>&lt;BLOCKQUOTE&gt;James wrote:&lt;BR /&gt;I've found this useful as well. Thanks &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
I've made a part that forms planks of varying widths, though I've got a few issues:&lt;BR /&gt;
&lt;BR /&gt;
When I copy my object, the projection on plan is the same as the original, even though when I go to 3D view the objects apear different.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas how to get around this?&lt;BR /&gt;
&lt;BR /&gt;
And while I'm at it, how do I get the 3D and 2D script to use the same random number sequence? So I get hotspots on each end of the plank.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;/BLOCKQUOTE&gt;

Try generating your random values in the master script.</description>
      <pubDate>Fri, 02 Apr 2004 00:28:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22776#M40877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-02T00:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22777#M40878</link>
      <description>I tried that. But because each plank needs to be random widths, the random number is generated with in a FOR NEXT 3D script - therefore generating a new random number for each plank.</description>
      <pubDate>Fri, 02 Apr 2004 00:38:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22777#M40878</guid>
      <dc:creator>James B</dc:creator>
      <dc:date>2004-04-02T00:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22778#M40879</link>
      <description>&lt;BLOCKQUOTE&gt;James wrote:&lt;BR /&gt;I tried that. But because each plank needs to be random widths, the random number is generated with in a FOR NEXT 3D script - therefore generating a new random number for each plank.&lt;/BLOCKQUOTE&gt;

In the master script you could get it to create an array and fill it with random numbers, then use these same numbers sequentially in both scripts as part of a FOR NEXT loop.&lt;BR /&gt;
&lt;BR /&gt;
regards</description>
      <pubDate>Fri, 02 Apr 2004 00:55:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22778#M40879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-02T00:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22779#M40880</link>
      <description>Hi guys,&lt;BR /&gt;
&lt;BR /&gt;
Just got home from ACUWest trip last night and am slowly catching up here.  A number of comments to throw into the soup.&lt;BR /&gt;
&lt;BR /&gt;
First, we are talking about &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;'pseudo&lt;E&gt;&lt;/E&gt;-random' numbers here - a number sequence that is mathematically generated in a way such that when tested with a variety of statistical tests, it satisfies criteria for &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;appearing &lt;E&gt;&lt;/E&gt;random ... yet (this is the key) &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;it is completely reproducible&lt;E&gt;&lt;/E&gt;.&lt;BR /&gt;
&lt;BR /&gt;
Matthew (good meeting you!) is right to a point about the coins and so forth.  A mathematical coin when flipped a large number of times (not necessarily approaching infinity!) will be heads 50% of the time and tails 50% of the time.  A sequence of 12 numbers is not sufficient to verify the mathematical properties of a random number generator.  100's to 1,000's have to be generated if one really cares (AC's RND is 'good enough') ... and then various tests are run ... a so-called 'bucket' test - throwing the numbers into buckets to make sure that the generator is uniform - that is, it does not favor certain values over others.  (For a generator producing numbers from 1 to 10, we might have 10 'buckets' ... and generate 1,000 numbers... and would expect to see close to 100 - perhaps 95 to 105 - numbers in each bucket.)  A 'runs' test, makes sure that the generator isn't generating numbers in sequence too often ... 1,2,3,4,5,6,7,8,9,10 over and over would pass the bucket test, but wouldn't be too random.  And so forth.  A very well-studied area of computer science and statistics for over 50 years dating back to when computer simulations were called 'Monte Carlo' simulatinos. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
Anyway, just some more background there. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
Attached is a GDL object that displays either a list of numbers or a bar chart (parameter) in 2D.  No statistical tests.  But, it lets you see some of the numbers produced by the AC RND function.  Rebuild and they stay the same.  If you select the 'Karl' function (which isn't statistically perfect, but is OK), then when you rebuild, you'll see a different set of numbers each time.  This function was created in order to product an animation that DOES change with each rebuild ... so each new frame of a movie has a new effect.  Was going to write something up about it for David's Cookbook, but until today, hadn't seen that anybody else was interested in random numbers. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
I used my goofy function for the ArchiContest a few years ago where I built a Finnish Tulikivi soapstone fireplace that was a light source for the scene - and the firelight flickered randomly in intensity, direction and color (within limits of course to make it look real).  It used 3 AC lamps inside the woodstove to get the desired effect, which was pretty cool.  I think I still have a little MOV that I could post if anyone is interested.&lt;BR /&gt;
&lt;BR /&gt;
See you in Las Vegas (not).&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Fri, 02 Apr 2004 01:20:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22779#M40880</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2004-04-02T01:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22780#M40881</link>
      <description>Here's a screenshot of the output of the previous GDL object for a small sequence of numbers (different sequence left and right by the way).&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Fri, 02 Apr 2004 01:21:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22780#M40881</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2004-04-02T01:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Random numbers in 2d script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22781#M40882</link>
      <description>&lt;BLOCKQUOTE&gt;Karl wrote:&lt;BR /&gt;
I used my goofy function for the ArchiContest a few years ago where I built a Finnish Tulikivi soapstone fireplace that was a light source for the scene - and the firelight flickered randomly in intensity, direction and color (within limits of course to make it look real).  It used 3 AC lamps inside the woodstove to get the desired effect, which was pretty cool.  I think I still have a little MOV that I could post if anyone is interested.
&lt;/BLOCKQUOTE&gt;

That sounds very cool. Do you still have the animation on the web somewhere? I would love to see it.&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
&lt;BR /&gt;
Graeme</description>
      <pubDate>Fri, 02 Apr 2004 08:37:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-numbers-in-2d-script/m-p/22781#M40882</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2004-04-02T08:37:16Z</dc:date>
    </item>
  </channel>
</rss>

